Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jul 2019 20:14:30 +0000 (UTC)
From:      Vincenzo Maffione <vmaffione@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r350007 - stable/11/sys/dev/netmap
Message-ID:  <201907152014.x6FKEU1b014319@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vmaffione
Date: Mon Jul 15 20:14:30 2019
New Revision: 350007
URL: https://svnweb.freebsd.org/changeset/base/350007

Log:
  MFC r349966
  
  netmap: fix bug introduced by r349752
  
  r349752 introduced a NULL pointer reference bug
  in the emulated netmap code.
  
  Reported by:    lwhsu

Modified:
  stable/11/sys/dev/netmap/netmap_generic.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/netmap/netmap_generic.c
==============================================================================
--- stable/11/sys/dev/netmap/netmap_generic.c	Mon Jul 15 20:12:54 2019	(r350006)
+++ stable/11/sys/dev/netmap/netmap_generic.c	Mon Jul 15 20:14:30 2019	(r350007)
@@ -1124,7 +1124,8 @@ generic_netmap_attach(struct ifnet *ifp)
 
 	nm_os_generic_set_features(gna);
 
-	nm_prinf("Emulated adapter for %s created (prev was %s)", na->name, gna->prev->name);
+	nm_prinf("Emulated adapter for %s created (prev was %s)", na->name,
+	    gna->prev ? gna->prev->name : "NULL");
 
 	return retval;
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907152014.x6FKEU1b014319>