svn commit: r202000 - head/sys/dev/ae

Gavin Atkinson gavin at FreeBSD.org
Sun Jan 10 14:48:43 UTC 2010


Author: gavin
Date: Sun Jan 10 14:48:42 2010
New Revision: 202000
URL: http://svn.freebsd.org/changeset/base/202000

Log:
  Don't panic on attach if we can't allocate ifp
  
  Approved by:	ed (mentor)
  MFC after:	2 weeks

Modified:
  head/sys/dev/ae/if_ae.c

Modified: head/sys/dev/ae/if_ae.c
==============================================================================
--- head/sys/dev/ae/if_ae.c	Sun Jan 10 14:30:30 2010	(r201999)
+++ head/sys/dev/ae/if_ae.c	Sun Jan 10 14:48:42 2010	(r202000)
@@ -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;


More information about the svn-src-all mailing list