mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
virt/lx_emul: check for NULL urb in usb_submit_urb()
The Linux implementation also includes this check. NULL urb submission happened with Wacom touch devices.
This commit is contained in:
@@ -92,6 +92,9 @@ int usb_submit_urb(struct urb *urb, gfp_t mem_flags)
|
||||
int ret = 0;
|
||||
unsigned timeout_jiffies = msecs_to_jiffies(10000u);
|
||||
|
||||
if (!urb || !urb->complete)
|
||||
return -EINVAL;
|
||||
|
||||
if (!urb->dev->bus)
|
||||
return -ENODEV;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user