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
This commit is contained in:
parent
56b28f6b2c
commit
ef4087bf2b
1 changed files with 1 additions and 1 deletions
|
|
@ -690,6 +690,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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue