lx_emul: validate endpoint for isochronous URB

Thanks to Andreas for the patch.
This commit is contained in:
Christian Helmuth 2022-10-04 14:43:00 +02:00
parent f81f075670
commit ee19426f4d

View File

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