From nobody Sat Dec 24 16:08:12 2022 X-Original-To: dev-commits-src-main@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 4NfTVN3fwNz1HKfC; Sat, 24 Dec 2022 16:08:12 +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 4NfTVN376nz3Hv7; Sat, 24 Dec 2022 16:08:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671898092; 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=vJt3Fcbhhi7yn1X3Uv9Z0TtkJ8N42XnpXgd39zPSuiM=; b=rXbvWx9ZgB1HbC8ZenExUSrEP50/zmuA+XLMEQSVo6+CcjUUBurvyF55Nly5kbkYEf6KPT 9T0BgLfdPYdJhx/TK96xRAhyJTFXwYllj9YgxfKpvkK09F02nNQkK0mXtGuOfJg7b3al29 WUpgmZ9/TSoc1rQmtgurhPMN0F02QbwyOuxvzU5zb3l1bIvdqNJICUQz+i4U7yRxWZlL6B 1G6W0HS8q2wo/pzYm/T250h6xfAOk95rr4+P2JwIPWc4w1STaf5ixa4J1cmkxLddGvB+cg R2mq3ouvDuJ53puuezfQvVOMyea5/tELBBaH+QuoMYjPOOX1YaLG+vjFvnjFeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671898092; 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=vJt3Fcbhhi7yn1X3Uv9Z0TtkJ8N42XnpXgd39zPSuiM=; b=WCNk78hWvODO35sRCArZrQSSoTQE6PRExKuNup5V2rFbRnP6A9/Ft05y2O51rpQdYcEpzZ 0r78nZrzXcDS8c5X3BK81GP3zbKztAwlYJsbT/xUXrern89qxulle1dt6YjNiiFZjz+tHP WoR551Kb4gCgU2AoVMFnPwHJiyaDyyGcVECtwn94u/D2Qy6ZKspXbJIBvFlJbP3eJprYQf 518OPUGoEJGq0XR9bqlsrxyhXUbxkpiiRBXDPFLcXU4seU10GX/ttEUJbbVRnsp1mTslJ0 ZeGzJti7AXkLdetK3jspCF+UVPALqWeG5bFMoWXqw8J7DtrVQ1Dlw7iP3JkKvQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671898092; a=rsa-sha256; cv=none; b=AiN+m0MuQJDzNjMQKiY2tJUa3yWTyXtepH0v/KSxtUXhm8ZgX9rEXCy121eWfM1yzcMOd+ u3SdQnBLVLyB1juFsYBnE8nuRcCQHR0f4V9/epG4iXALOL0ytP/1A/Oc+5B4b1UQyqBbbh XkZRzFBTXCfx7AttOaJgD6UdDtSv9ivIdXuwYW9v46NbS74MZVqIucHkPLNPFg5OBo4kde TOXuSvHEVDuLRRasjLqbtAjPZtFY0gOhLuuvXFMYM1Fu6BD1o2pme8ZdTpLMJCh8BC3r3N badxI+jsmp6F0JbGdW550T+V+KZo8fq06tJY8m9e+NboPPFj0SQAn3MaXGjtsw== 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 4NfTVN2BljzKGK; Sat, 24 Dec 2022 16:08:12 +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 2BOG8CKU032524; Sat, 24 Dec 2022 16:08:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BOG8CPC032523; Sat, 24 Dec 2022 16:08:12 GMT (envelope-from git) Date: Sat, 24 Dec 2022 16:08:12 GMT Message-Id: <202212241608.2BOG8CPC032523@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Vincenzo Maffione Subject: git: 95fc11577d11 - main - netmap: monitor: add missing netmap_adapter_put() List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 95fc11577d117327e7d99a589e86ba15d0599654 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by vmaffione: URL: https://cgit.FreeBSD.org/src/commit/?id=95fc11577d117327e7d99a589e86ba15d0599654 commit 95fc11577d117327e7d99a589e86ba15d0599654 Author: Vincenzo Maffione AuthorDate: 2022-12-24 16:03:14 +0000 Commit: Vincenzo Maffione CommitDate: 2022-12-24 16:03:14 +0000 netmap: monitor: add missing netmap_adapter_put() MFC after: 7 days --- 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 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)