In case we are supplied with an imagename that matches a module, but not a
firmware in that module (eventhough this is a programming error) - drop the reference to the module again. Submitted by: Benjamin Close MFC after: 3 days
This commit is contained in:
parent
cbfb87359e
commit
191c2cea1c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166285
@ -188,6 +188,7 @@ firmware_get(const char *imagename)
|
||||
if (requested_load) {
|
||||
printf("%s: failed to load firmware image %s\n",
|
||||
__func__, imagename);
|
||||
(void) linker_release_module(imagename, NULL, NULL);
|
||||
return NULL;
|
||||
}
|
||||
td = curthread;
|
||||
|
Loading…
Reference in New Issue
Block a user