Patchwork [STABLE,3/3] usb-bus: fix no params

login
register
mail settings
Submitter Luiz Capitulino
Date June 2, 2010, 8:19 p.m.
Message ID <1275509996-25823-4-git-send-email-lcapitulino@redhat.com>
Download mbox | patch
Permalink /patch/54429/
State New
Headers show

Comments

Luiz Capitulino - June 2, 2010, 8:19 p.m.
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 <geleman@gmail.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
(cherry picked from commit 98f22dc172e1ebd5341da3de0d67666442566f72)
---
 hw/usb-bus.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

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;
         }