From: Gerd Hoffmann Date: Mon, 20 Jul 2020 10:03:51 +0000 (+0200) Subject: module: ignore NULL type X-Git-Tag: qemu-xen-4.15.0~47^2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=d87350b065128e8156e7aca93e89a1ab9e5fa63d;p=qemu-xen.git module: ignore NULL type Just return in case module_load_qom_one(NULL) is called. vga_interface_available() can do that. Signed-off-by: Gerd Hoffmann Message-Id: <20200720100352.2477-3-kraxel@redhat.com> --- diff --git a/util/module.c b/util/module.c index 90e9bd42c6..0ab00851f0 100644 --- 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; }