Date: Sat, 31 Dec 2022 12:29:19 GMT From: Vincenzo Maffione <vmaffione@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 79a1edf21e83 - stable/12 - netmap: monitor: add missing netmap_adapter_put() Message-ID: <202212311229.2BVCTJvS070077@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by vmaffione: URL: https://cgit.FreeBSD.org/src/commit/?id=79a1edf21e83d5fedf3d474810642d687db0e7a0 commit 79a1edf21e83d5fedf3d474810642d687db0e7a0 Author: Vincenzo Maffione <vmaffione@FreeBSD.org> AuthorDate: 2022-12-24 16:03:14 +0000 Commit: Vincenzo Maffione <vmaffione@FreeBSD.org> CommitDate: 2022-12-31 12:14:38 +0000 netmap: monitor: add missing netmap_adapter_put() MFC after: 7 days (cherry picked from commit 95fc11577d117327e7d99a589e86ba15d0599654) --- sys/dev/netmap/netmap_monitor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/netmap/netmap_monitor.c b/sys/dev/netmap/netmap_monitor.c index aabf23b0397a..ad7274b075af 100644 --- a/sys/dev/netmap/netmap_monitor.c +++ b/sys/dev/netmap/netmap_monitor.c @@ -485,6 +485,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); } /* orhpan the zmon list */ if (z->next != NULL)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212311229.2BVCTJvS070077>