aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/netmap/netmap_monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/netmap/netmap_monitor.c')
-rw-r--r--sys/dev/netmap/netmap_monitor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/netmap/netmap_monitor.c b/sys/dev/netmap/netmap_monitor.c
index 9f94bed056a1..8e3e39e6aadd 100644
--- a/sys/dev/netmap/netmap_monitor.c
+++ b/sys/dev/netmap/netmap_monitor.c
@@ -487,6 +487,8 @@ netmap_monitor_stop(struct netmap_adapter *na)
/* let the monitor forget about us */
netmap_adapter_put(next->priv.np_na); /* nop if null */
next->priv.np_na = NULL;
+ /* drop the additional ref taken in netmap_monitor_add() */
+ netmap_adapter_put(zkring->zmon_list[t].prev->na);
}
/* orphan the zmon list */
if (z->next != NULL)