commit | d87350b065128e8156e7aca93e89a1ab9e5fa63d | [log] [tgz] |
---|---|---|
author | Gerd Hoffmann <kraxel@redhat.com> | Mon Jul 20 12:03:51 2020 +0200 |
committer | Gerd Hoffmann <kraxel@redhat.com> | Tue Jul 21 10:56:51 2020 +0200 |
tree | 8d6334745b6a7bbdab45a2a3cc2a83bc95391090 | |
parent | d97df4b84bc42613cf9a03619de453ebd0be30b7 [diff] |
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 <kraxel@redhat.com> Message-Id: <20200720100352.2477-3-kraxel@redhat.com>
diff --git a/util/module.c b/util/module.c index 90e9bd4..0ab0085 100644 --- a/util/module.c +++ b/util/module.c
@@ -275,6 +275,9 @@ { int i; + if (!type) { + return; + } if (module_loaded_qom_all) { return; }