From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:49317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9wdz-0005WA-8U for qemu-devel@nongnu.org; Wed, 13 Apr 2011 05:45:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9wdt-0000Gc-Mk for qemu-devel@nongnu.org; Wed, 13 Apr 2011 05:45:51 -0400 Received: from ipmail06.adl6.internode.on.net ([150.101.137.145]:28862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9wdt-0000Fz-Bj for qemu-devel@nongnu.org; Wed, 13 Apr 2011 05:45:45 -0400 From: Brad Hards Date: Wed, 13 Apr 2011 19:45:32 +1000 Message-Id: <1302687934-1287-3-git-send-email-bradh@frogmouth.net> In-Reply-To: <1302687934-1287-1-git-send-email-bradh@frogmouth.net> References: <1302687934-1287-1-git-send-email-bradh@frogmouth.net> Subject: [Qemu-devel] [PATCH 2/4] usb: initialise data element in Linux USB_DISCONNECT ioctl. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Brad Hards This isn't used, but leaving it empty causes valgrind noise. Signed-off-by: Brad Hards --- usb-linux.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index 255009f..d958853 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"); -- 1.7.1