summaryrefslogtreecommitdiff
path: root/usb-linux.c
diff options
context:
space:
mode:
authorBrad Hards <bradh@frogmouth.net>2011-04-13 19:45:32 +1000
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-04-16 12:24:28 +0100
commit021730f7285923460e81004c9dae74b6a1c8aa0c (patch)
tree92bcd0f2e205c492052d8bdd341f8830aaeedc0c /usb-linux.c
parent94843f66ab06f45240d2afa7a648c5722da14dfb (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>
Diffstat (limited to 'usb-linux.c')
-rw-r--r--usb-linux.c1
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");