usb_block_drv: release packet after device reset

Fixes #2827
This commit is contained in:
Christian Prochaska 2018-05-07 17:20:56 +02:00 committed by Christian Helmuth
parent 68ec33b0d3
commit c6e4f5914e

View File

@ -410,8 +410,10 @@ struct Usb::Block_driver : Usb::Completion,
iface.control_transfer(p, 0x21, 0xff, 0, active_interface, 100);
if (!p.succeded) {
Genode::error("Could not reset device");
iface.release(p);
throw -1;
}
iface.release(p);
/*
* Let us do GetMaxLUN and simply ignore the return value because none