diff options
author | Badhri Jagan Sridharan <badhri@google.com> | 2014-08-06 12:34:30 -0700 |
---|---|---|
committer | Badhri Jagan Sridharan <badhri@google.com> | 2014-08-07 01:13:31 +0000 |
commit | 266685924a81eb6a6c82f8e04cbe1ad5ffbff491 (patch) | |
tree | f70b28a0bd70c72a47f6f68bef2817b0539ef520 | |
parent | 678bd2e8225ccebe678430d4095b7fc78253bcf8 (diff) | |
download | system_core-266685924a81eb6a6c82f8e04cbe1ad5ffbff491.zip system_core-266685924a81eb6a6c82f8e04cbe1ad5ffbff491.tar.gz system_core-266685924a81eb6a6c82f8e04cbe1ad5ffbff491.tar.bz2 |
libusbhost: Fix IOCTL call during usb_request_cancel
USBDEVFS_DISCARDURB IOCTL call expects a pointer to the
the urb structure to be passed from userspace. LibusbHost
instead sends usbdevfs_urb**. Change this to usbdevfs_urb*.
Fixes Issue: https://code.google.com/p/android/issues/detail?id=74530
Change-Id: Ifb8a13857e1a9f62536f2a07c0965e9c419b7d4c
-rw-r--r-- | libusbhost/usbhost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libusbhost/usbhost.c b/libusbhost/usbhost.c index 488dd0e..684f401 100644 --- a/libusbhost/usbhost.c +++ b/libusbhost/usbhost.c @@ -695,6 +695,6 @@ struct usb_request *usb_request_wait(struct usb_device *dev) int usb_request_cancel(struct usb_request *req) { struct usbdevfs_urb *urb = ((struct usbdevfs_urb*)req->private_data); - return ioctl(req->dev->fd, USBDEVFS_DISCARDURB, &urb); + return ioctl(req->dev->fd, USBDEVFS_DISCARDURB, urb); } |