mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
MFp4:
o Minor tweak to error processing in ep_alloc.
This commit is contained in:
parent
5c30ae1f77
commit
02b80cde42
1 changed files with 3 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ eeprom_rdy(struct ep_softc *sc)
|
|||
|
||||
if (i >= MAX_EEPROMBUSY) {
|
||||
printf("ep%d: eeprom failed to come ready.\n", sc->unit);
|
||||
return (ENXIO);
|
||||
return (ENXIO);
|
||||
}
|
||||
|
||||
return (0);
|
||||
|
|
@ -217,6 +217,8 @@ ep_alloc(device_t dev)
|
|||
sc->epb.res_cfg = result;
|
||||
|
||||
bad:
|
||||
if (error != 0)
|
||||
ep_free(dev);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue