mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-29 23:54:14 +00:00
lx_emul: validate endpoint for isochronous URB
Thanks to Andreas for the patch.
This commit is contained in:
parent
f81f075670
commit
ee19426f4d
@ -625,6 +625,8 @@ static int fill_isoc_urb(struct usb_device * udev,
|
||||
struct usb_host_endpoint * ep =
|
||||
req->ep & USB_DIR_IN ? udev->ep_in[req->ep & 0xf]
|
||||
: udev->ep_out[req->ep & 0xf];
|
||||
if (!ep)
|
||||
return -ENOENT;
|
||||
|
||||
*urb = usb_alloc_urb(req->number_of_packets, GFP_KERNEL);
|
||||
if (!*urb)
|
||||
|
Loading…
x
Reference in New Issue
Block a user