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;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to