Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Jul 2019 21:31:49 +0000 (UTC)
From:      Vincenzo Maffione <vmaffione@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r349753 - head/sys/dev/netmap
Message-ID:  <201907042131.x64LVnwP091757@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vmaffione
Date: Thu Jul  4 21:31:49 2019
New Revision: 349753
URL: https://svnweb.freebsd.org/changeset/base/349753

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

Modified:
  head/sys/dev/netmap/netmap_mem2.c

Modified: head/sys/dev/netmap/netmap_mem2.c
==============================================================================
--- head/sys/dev/netmap/netmap_mem2.c	Thu Jul  4 21:11:45 2019	(r349752)
+++ head/sys/dev/netmap/netmap_mem2.c	Thu Jul  4 21:31:49 2019	(r349753)
@@ -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?201907042131.x64LVnwP091757>