projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d97df4b
)
module: ignore NULL type
author
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 20 Jul 2020 10:03:51 +0000
(12:03 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Tue, 21 Jul 2020 08:56:51 +0000
(10:56 +0200)
Just return in case module_load_qom_one(NULL) is called.
vga_interface_available() can do that.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-Id: <
20200720100352
.2477-3-kraxel@redhat.com>
util/module.c
patch
|
blob
|
history
diff --git
a/util/module.c
b/util/module.c
index 90e9bd42c6c739f6c1c32d80824460d6983476b9..0ab00851f0a4d7c701a181c5a1e6baed534434cd 100644
(file)
--- a/
util/module.c
+++ b/
util/module.c
@@
-275,6
+275,9
@@
void module_load_qom_one(const char *type)
{
int i;
+ if (!type) {
+ return;
+ }
if (module_loaded_qom_all) {
return;
}