mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
When usbd_transfer_setup() fails, don't call
usbd_transfer_unsetup().
This commit is contained in:
parent
a5d826557f
commit
2948462df8
1 changed files with 2 additions and 1 deletions
|
|
@ -553,7 +553,8 @@ axge_attach(device_t dev)
|
|||
sc->sc_xfer, axge_config, AXGE_N_TRANSFER, sc, &sc->sc_mtx);
|
||||
if (error) {
|
||||
device_printf(dev, "allocating USB transfers failed\n");
|
||||
goto detach;
|
||||
mtx_destroy(&sc->sc_mtx);
|
||||
return (ENXIO);
|
||||
}
|
||||
|
||||
ue->ue_sc = sc;
|
||||
|
|
|
|||
Loading…
Reference in a new issue