Date: Sun, 10 Jan 2010 14:48:42 +0000 (UTC) From: Gavin Atkinson <gavin@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r202000 - head/sys/dev/ae Message-ID: <201001101448.o0AEmgKi055982@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001101448.o0AEmgKi055982>