Date: Fri, 1 Nov 2013 17:39:59 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r257513 - stable/10/sys/dev/hyperv/netvsc Message-ID: <201311011739.rA1Hdxuw081475@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Fri Nov 1 17:39:59 2013 New Revision: 257513 URL: http://svnweb.freebsd.org/changeset/base/257513 Log: MFC r257369: Don't reference pointer before testing whether it is NULL. Submitted by: Clement Lecigne <clecigne google com> Reviewed by: grehan Approved by: re (kib) Modified: stable/10/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c Directory Properties: stable/10/sys/ (props changed) stable/10/sys/dev/hyperv/ (props changed) Modified: stable/10/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c ============================================================================== --- stable/10/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c Fri Nov 1 17:38:52 2013 (r257512) +++ stable/10/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c Fri Nov 1 17:39:59 2013 (r257513) @@ -621,13 +621,15 @@ netvsc_recv(struct hv_device *device_ctx { hn_softc_t *sc = (hn_softc_t *)device_get_softc(device_ctx->device); struct mbuf *m_new; - struct ifnet *ifp = sc->hn_ifp; + struct ifnet *ifp; int size; int i; if (sc == NULL) { return (0); /* TODO: KYS how can this be! */ } + + ifp = sc->hn_ifp; ifp = sc->arpcom.ac_ifp;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311011739.rA1Hdxuw081475>