Commit d87350b0 authored by Gerd Hoffmann's avatar Gerd Hoffmann
Browse files

module: ignore NULL type



Just return in case module_load_qom_one(NULL) is called.
vga_interface_available() can do that.

Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
Message-Id: <20200720100352.2477-3-kraxel@redhat.com>
parent d97df4b8
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -275,6 +275,9 @@ void module_load_qom_one(const char *type)
{
    int i;

    if (!type) {
        return;
    }
    if (module_loaded_qom_all) {
        return;
    }