svn commit: r285696 - head/sys/dev/netmap

Luigi Rizzo luigi at FreeBSD.org
Sun Jul 19 18:04:52 UTC 2015


Author: luigi
Date: Sun Jul 19 18:04:51 2015
New Revision: 285696
URL: https://svnweb.freebsd.org/changeset/base/285696

Log:
  release a reference when stopping a monitor

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

Modified: head/sys/dev/netmap/netmap_monitor.c
==============================================================================
--- head/sys/dev/netmap/netmap_monitor.c	Sun Jul 19 17:54:42 2015	(r285695)
+++ head/sys/dev/netmap/netmap_monitor.c	Sun Jul 19 18:04:51 2015	(r285696)
@@ -326,6 +326,7 @@ netmap_monitor_stop(struct netmap_adapte
 				struct netmap_monitor_adapter *mna =
 					(struct netmap_monitor_adapter *)mkring->na;
 				/* forget about this adapter */
+				netmap_adapter_put(mna->priv.np_na);
 				mna->priv.np_na = NULL;
 			}
 		}


More information about the svn-src-head mailing list