mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-14 14:55:41 +00:00
If we fail to find our PCI ID in attach (this should never happen), then
just return ENXIO directly instead of calling tl_detach() since that would panic since the softc mutex isn't initialized until after this check.
This commit is contained in:
parent
8b3ee9cd3b
commit
726f07979c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112878
@ -1137,8 +1137,7 @@ tl_attach(dev)
|
||||
|
||||
if (t->tl_name == NULL) {
|
||||
device_printf(dev, "unknown device!?\n");
|
||||
error = ENXIO;
|
||||
goto fail;
|
||||
return (ENXIO);
|
||||
}
|
||||
|
||||
mtx_init(&sc->tl_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK,
|
||||
|
Loading…
Reference in New Issue
Block a user