lx_emul: take usb device lock before resetting it

Fix genodelabs/genode#5381
This commit is contained in:
Stefan Kalkowski 2024-11-14 11:47:17 +01:00 committed by Christian Helmuth
parent 28542e66ab
commit 591aadea54

View File

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