[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[qemu-xen master] module: ignore NULL type



commit d87350b065128e8156e7aca93e89a1ab9e5fa63d
Author:     Gerd Hoffmann <kraxel@xxxxxxxxxx>
AuthorDate: Mon Jul 20 12:03:51 2020 +0200
Commit:     Gerd Hoffmann <kraxel@xxxxxxxxxx>
CommitDate: Tue Jul 21 10:56:51 2020 +0200

    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@xxxxxxxxxx>
    Message-Id: <20200720100352.2477-3-kraxel@xxxxxxxxxx>
---
 util/module.c | 3 +++
 1 file changed, 3 insertions(+)

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;
     }
--
generated by git-patchbot for /home/xen/git/qemu-xen.git#master



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.