mirror of
https://github.com/torvalds/linux.git
synced 2026-11-23 23:11:40 +00:00
In a situation where the urb is about to be returned or was never there, we should return -EIDRM (as per usb_hcd_check_unlink_urb). This is exactly the situation when the urb is picked up by vhci_rx before we access priv. Return -EIDRM rather than 0 when this happens. Signed-off-by: Igor Kotrasinski <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
TODO: - more discussion about the protocol - testing - review of the userspace interface - document the protocol Please send patches for this code to Greg Kroah-Hartman <[email protected]>