Merge "libusbhost: Fix IOCTL call during usb_request_cancel" into lmp-dev

This commit is contained in:
Badhri Jagan Sridharan 2014-08-12 20:56:01 +00:00 committed by Android (Google) Code Review
commit 0be19a53cf

View file

@ -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);
}