svn commit: r257513 - stable/10/sys/dev/hyperv/netvsc
Xin LI
delphij at FreeBSD.org
Fri Nov 1 17:39:59 UTC 2013
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;
More information about the svn-src-stable
mailing list