[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [STABLE 3/3] usb-bus: fix no params
From: |
Luiz Capitulino |
Subject: |
[Qemu-devel] [STABLE 3/3] usb-bus: fix no params |
Date: |
Wed, 2 Jun 2010 17:19:56 -0300 |
After commit 702f3e0fb52c124c07f215426eeadb70a716643f, the params is
nerver NULL. It should check *params instead of params to determine
whether the params is empty.
Conflicts:
hw/usb-bus.c
Signed-off-by: TeLeMan <address@hidden>
Signed-off-by: Aurelien Jarno <address@hidden>
Signed-off-by: Luiz Capitulino <address@hidden>
(cherry picked from commit 98f22dc172e1ebd5341da3de0d67666442566f72)
---
hw/usb-bus.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/usb-bus.c b/hw/usb-bus.c
index 3bb8986..aae1fef 100644
--- a/hw/usb-bus.c
+++ b/hw/usb-bus.c
@@ -299,7 +299,7 @@ USBDevice *usbdevice_create(const char *cmdline)
}
if (!usb->usbdevice_init) {
- if (params) {
+ if (*params) {
qemu_error("usbdevice %s accepts no params\n", driver);
return NULL;
}
--
1.7.1.231.gd0b16