Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jul 2019 20:15:00 +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-12@freebsd.org
Subject:   svn commit: r349921 - stable/12/sys/dev/netmap
Message-ID:  <201907112015.x6BKF0br038588@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vmaffione
Date: Thu Jul 11 20:14:59 2019
New Revision: 349921
URL: https://svnweb.freebsd.org/changeset/base/349921

Log:
  MFC r349753
  
  netmap: Remove pointer leakage in netmap_mem2.c
  
  PR:             238641
  Submitted by:   Fuqian Huang <huangfq.daxian@gmail.com>
  Reviewed by:    vmaffione

Modified:
  stable/12/sys/dev/netmap/netmap_mem2.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/netmap/netmap_mem2.c
==============================================================================
--- stable/12/sys/dev/netmap/netmap_mem2.c	Thu Jul 11 20:13:51 2019	(r349920)
+++ stable/12/sys/dev/netmap/netmap_mem2.c	Thu Jul 11 20:14:59 2019	(r349921)
@@ -2446,8 +2446,8 @@ netmap_mem_pt_guest_ifp_del(struct netmap_mem_d *nmd, 
 			} else {
 				ptnmd->pt_ifs = curr->next;
 			}
-			nm_prinf("removed (ifp=%p,nifp_offset=%u)",
-			  curr->ifp, curr->nifp_offset);
+			nm_prinf("removed (ifp=%s,nifp_offset=%u)",
+			  curr->ifp->if_xname, curr->nifp_offset);
 			nm_os_free(curr);
 			ret = 0;
 			break;



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