mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-18 13:26:27 +00:00
lx_emul: take usb device lock before resetting it
Fix genodelabs/genode#5381
This commit is contained in:
parent
28542e66ab
commit
591aadea54
@ -129,7 +129,12 @@ static void release_device(struct usb_per_dev_data * data)
|
||||
usb_driver_release_interface(&usb_drv, iface);
|
||||
}
|
||||
}
|
||||
|
||||
if (usb_lock_device_for_reset(data->dev, NULL))
|
||||
return;
|
||||
|
||||
usb_reset_device(data->dev);
|
||||
usb_unlock_device(data->dev);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user