From nobody Sat Dec 31 12:07:08 2022 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Nkgq10H01z2nK4B; Sat, 31 Dec 2022 12:07:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Nkgq06kJnz4Hq2; Sat, 31 Dec 2022 12:07:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672488429; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Q3V5xohf4uvc+i4rqvddbZ7h5jjNUZ1fFPcpM3nIFiU=; b=FSbP7Hnge76Zcbx6oG/BUoUeOxvC/rU2m0/fGCLIfszfb8BxcCR5clN9n12MHmlJptZPyM eZXwAoEYdJfzgWI+1I578fIBGWEbYGKqs6pE1fq+Lc+Q6go2FMogCqbBuuxd1wPxCg7B0/ Occ02B0hLM8Qwzqi/RiiwmyhdS1LuGAMuQ09LYicM4li9xKTqmZhgeJrORAyttnPI3FlhG moSfWU1B/coexeRtRy0mXDtIcGchjplN5cJmZtUM8vpgKCKbHbAKP/0UXi4mG/Hfb0fQdP L8VVEdPXmBoO1Yk1ZezS4uspHsdBWVblgIxEERSxp9gwSWBX5Io1gFJVHT5RTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672488429; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Q3V5xohf4uvc+i4rqvddbZ7h5jjNUZ1fFPcpM3nIFiU=; b=NRW0Gedyxdp5F21ayoh6uajXzyqPL6+Z5drwNkkk13fVOPIZa59gedJgw3serau37jcUS3 HNOAjFqIvJKpfM3BBZm9+MzalCwGI1CVvVOGm8F21bPDTxSoLLyCsMOtFhIShlzs35MSaH zvE05flvQMZQx3lA+QKRPmURAYS3JXD/v5yNdASRDuiVHxUN1ethfAOmob/kj7xDXmqSWr 1JKyVl7eqIKDZCCNeiEf0z343NJaCmhjOchsjPVCfqWxD0aMPGNqyR8uk1XhsdKVTjKdIl QXVcuCNtppLbjwSMDWIC5QRxa6Z/lUu+fsdbNPE0AhR41rs1Q38KrodrwcSMjQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672488429; a=rsa-sha256; cv=none; b=Mx3bHjgWJIR5xkV3ha3ffzMR79sGKjhf2C6Bp/CrykDqQDMT8ZdYRbhC13znHM4xwU3MuC hMPF2zHm1Z9WulBX9Hn9OX4WqlLejMMmEsBv9pei34zZYhef4PRYplB9MhWcw+hiU+6n6v zFp+Ubsih9VpfLnA1fOIS6eS/MsvLl3deZEL9IJHJATs+MxfNOA8OX6yVCcnBHoOBn7SRE yObGk0wL9sac98D1iTupus5GGwnr4wtkwQGRmQZZ8QrLOkT6gHcMhet97/EKdDlDymVzv9 UcmwFgp24gak1imCMV5y2ZQXWZ/x6KgAO8BQAyw5vLuljqxaJGMz0FM9N0BihA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Nkgq05cYVznGL; Sat, 31 Dec 2022 12:07:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BVC78m0041368; Sat, 31 Dec 2022 12:07:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BVC78UB041367; Sat, 31 Dec 2022 12:07:08 GMT (envelope-from git) Date: Sat, 31 Dec 2022 12:07:08 GMT Message-Id: <202212311207.2BVC78UB041367@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Vincenzo Maffione Subject: git: cce75f3327b8 - stable/13 - netmap: monitor: add missing netmap_adapter_put() List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vmaffione X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: cce75f3327b89dd544bdc1e81080dd344e526947 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by vmaffione: URL: https://cgit.FreeBSD.org/src/commit/?id=cce75f3327b89dd544bdc1e81080dd344e526947 commit cce75f3327b89dd544bdc1e81080dd344e526947 Author: Vincenzo Maffione AuthorDate: 2022-12-24 16:03:14 +0000 Commit: Vincenzo Maffione CommitDate: 2022-12-31 12:06:04 +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 6294cc9bdbba..967288c3bb29 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); } /* orhpan the zmon list */ if (z->next != NULL)