mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 10:46:25 +00: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:
parent
2584c104e0
commit
e440ab40ef
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user