diff options
author | gavin <gavin@FreeBSD.org> | 2010-01-10 14:48:42 +0000 |
---|---|---|
committer | gavin <gavin@FreeBSD.org> | 2010-01-10 14:48:42 +0000 |
commit | b4a73cf01032da513e09a24a8311f2bb61be9ab1 (patch) | |
tree | 9f124a0d6e85041399db9d443653bc679093aaba /sys/dev/ae | |
parent | 030d49b206a72052b076bdf444707e89b797b324 (diff) | |
download | FreeBSD-src-b4a73cf01032da513e09a24a8311f2bb61be9ab1.zip FreeBSD-src-b4a73cf01032da513e09a24a8311f2bb61be9ab1.tar.gz |
Don't panic on attach if we can't allocate ifp
Approved by: ed (mentor)
MFC after: 2 weeks
Diffstat (limited to 'sys/dev/ae')
-rw-r--r-- | sys/dev/ae/if_ae.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ae/if_ae.c b/sys/dev/ae/if_ae.c index d3e95ef..68181f4 100644 --- a/sys/dev/ae/if_ae.c +++ b/sys/dev/ae/if_ae.c @@ -367,6 +367,7 @@ ae_attach(device_t dev) if (ifp == NULL) { device_printf(dev, "could not allocate ifnet structure.\n"); error = ENXIO; + goto fail; } ifp->if_softc = sc; |