diff options
author | Brad Hards <bradh@frogmouth.net> | 2011-04-13 19:45:32 +1000 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-04-16 12:24:28 +0100 |
commit | 021730f7285923460e81004c9dae74b6a1c8aa0c (patch) | |
tree | 92bcd0f2e205c492052d8bdd341f8830aaeedc0c | |
parent | 94843f66ab06f45240d2afa7a648c5722da14dfb (diff) |
usb: initialise data element in Linux USB_DISCONNECT ioctl
This isn't used, but leaving it empty causes valgrind noise.
Signed-off-by: Brad Hards <bradh@frogmouth.net>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-rw-r--r-- | usb-linux.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usb-linux.c b/usb-linux.c index 255009f539..d958853634 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -344,6 +344,7 @@ static int usb_host_claim_interfaces(USBHostDevice *dev, int configuration) for (interface = 0; interface < nb_interfaces; interface++) { ctrl.ioctl_code = USBDEVFS_DISCONNECT; ctrl.ifno = interface; + ctrl.data = 0; ret = ioctl(dev->fd, USBDEVFS_IOCTL, &ctrl); if (ret < 0 && errno != ENODATA) { perror("USBDEVFS_DISCONNECT"); |