]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hmp.c
uhci: check device is not NULL before calling usb_ep_get()
[mirror_qemu.git] / hmp.c
diff --git a/hmp.c b/hmp.c
index 4d14718fea4a5a21a8eaa6c5df51b6f5bdf1a8c6..1e006eeb49c9e061e15a4e09bd709e11760ffcf9 100644 (file)
--- a/hmp.c
+++ b/hmp.c
@@ -2395,7 +2395,7 @@ void hmp_chardev_add(Monitor *mon, const QDict *qdict)
     if (opts == NULL) {
         error_setg(&err, "Parsing chardev args failed");
     } else {
-        qemu_chr_new_from_opts(opts, &err);
+        qemu_chr_new_from_opts(opts, NULL, &err);
         qemu_opts_del(opts);
     }
     hmp_handle_error(mon, &err);