diff options
| author | Vincenzo Maffione <vmaffione@FreeBSD.org> | 2022-12-24 16:03:14 +0000 |
|---|---|---|
| committer | Vincenzo Maffione <vmaffione@FreeBSD.org> | 2022-12-24 16:03:14 +0000 |
| commit | 95fc11577d117327e7d99a589e86ba15d0599654 (patch) | |
| tree | 016ab9de990f0d94b98751ea39f4c0aa76a782db /sys/dev/netmap/netmap_monitor.c | |
| parent | 92e8b4a6301cc4ff4481e981c95c5b30b2a44506 (diff) | |
Diffstat (limited to 'sys/dev/netmap/netmap_monitor.c')
| -rw-r--r-- | sys/dev/netmap/netmap_monitor.c | 2 |
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) |
