projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94843f6
)
usb: initialise data element in Linux USB_DISCONNECT ioctl
author
Brad Hards
<bradh@frogmouth.net>
Wed, 13 Apr 2011 09:45:32 +0000
(19:45 +1000)
committer
Stefan Hajnoczi
<stefanha@linux.vnet.ibm.com>
Sat, 16 Apr 2011 11:24:28 +0000
(12:24 +0100)
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>
usb-linux.c
patch
|
blob
|
history
diff --git
a/usb-linux.c
b/usb-linux.c
index
255009f
..
d958853
100644
(file)
--- 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");