From 021730f7285923460e81004c9dae74b6a1c8aa0c Mon Sep 17 00:00:00 2001 From: Brad Hards Date: Wed, 13 Apr 2011 19:45:32 +1000 Subject: [PATCH] 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 Signed-off-by: Stefan Hajnoczi --- usb-linux.c | 1 + 1 file changed, 1 insertion(+) 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"); -- 2.11.4.GIT