From nobody Mon Feb 13 21:35:54 2023 X-Original-To: dev-commits-src-all@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 4PFyLz1l0xz3qNhT; Mon, 13 Feb 2023 21:35:55 +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 4PFyLz0wy5z4b60; Mon, 13 Feb 2023 21:35:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676324155; 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=RFmObU9peKW0K5XlHs2k5MFNzBV8uER0qyTDk1KowEY=; b=RApzXW6E1vaDORNH5NmLdvwteeiCAjEQk2/epudvh6lsq+jLNQ23giR0cZWH/IXwzpf5x4 3YIvAvnkAJPd3289r38xWyD1f35fDtcVpB0g+ruBgFms/grvKRfDTfQK4PhbBPtylhJ85J KGaghhJ+0/JJxXRtaa2U+XsmBG7cWZyGZ9nLA6OBDENjNYz+97dyU4YWCFpmMXPTurKbRV VKCacdc4u1PI2uZy+zn0+W1qesBe4zM0CU7ldx395fC9pX7xRv37N7SgeHewoKqRyNG42+ bFgg2pg1TSP85xNV4RiU/FSyWKSPvk60ON97OKkcTPfmj/IpRT+NljlERUpyEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676324155; 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=RFmObU9peKW0K5XlHs2k5MFNzBV8uER0qyTDk1KowEY=; b=o07Dptt8EaS69ehTrMBLe1SeLMJiOVF/UQaBfgznua+1EQAmAoS3WLLaZSeKPqp5D0S8cp uveGusiOqc+jj5OKED6Dcns/it2lpyWc54/An3hQXok3t00wvixoy1rAQJmKuYW5C7etPf 6P2iqynSyNLEBy5zWECJCfxVbqmFS3D9GOoBPvaDlDs78QdzNibasdcyhQ/IX+eWK70+v9 v+Ah4X1sfwivwtsNu3oQqW44NEHQVNcxV8jGGDbJVwvdyxWZnkb3EpUzKkMnUiFyTCEQ0G 5Fxv1JFPKCxIkeDZUwFc+17yhV2e5GOPPAfHGP4MpwjwsXNLNyBG4S3wdfugAg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676324155; a=rsa-sha256; cv=none; b=v+F4gIIE2gZt3x063KXNSXi64+HUFsfsOBWFiIv5b4ZbReV97WFE8OK0BYTrFZWpSOM49X tMM/G1nDygf3QCnpaVwH5+5OkoB6q65Ms6JhvaGQ6oQNCwlU2bQG50NxFs9fAqTeo+s97R pFDhDGw+bN/ygIEPaE07WGR7UXRFC3rfxS47xxxvFkyFBd7fxJ9ueH/e1peqbb3KrMMz18 O0L7hhd3+Bm7qrsBd1eVpMgtd+Cs8r0MZLIBBW0EA99CckpAIyc0XU0OmofmulDql5rFoX TrmAgUtS98kQBDHT7jCXm2kHdkatfzp88T3FQKxBKUM9zP0NxmsU+7RnWKIm+g== 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 4PFyLy71YjzYhc; Mon, 13 Feb 2023 21:35:54 +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 31DLZsKH099061; Mon, 13 Feb 2023 21:35:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31DLZsHj099060; Mon, 13 Feb 2023 21:35:54 GMT (envelope-from git) Date: Mon, 13 Feb 2023 21:35:54 GMT Message-Id: <202302132135.31DLZsHj099060@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: c7ea65ec69dd - main - inpcb: refcount_release() returns a bool List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c7ea65ec69dde90253bd1872fecaeb7c07337f97 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=c7ea65ec69dde90253bd1872fecaeb7c07337f97 commit c7ea65ec69dde90253bd1872fecaeb7c07337f97 Author: Mark Johnston AuthorDate: 2023-02-13 21:26:36 +0000 Commit: Mark Johnston CommitDate: 2023-02-13 21:35:47 +0000 inpcb: refcount_release() returns a bool No functional change intended. MFC after: 1 week Sponsored by: Klara, Inc. --- sys/netinet/in_pcb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index 3369f16e15c7..ad889f29de55 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -1728,7 +1728,7 @@ in_pcbrele_rlocked(struct inpcb *inp) INP_RLOCK_ASSERT(inp); - if (refcount_release(&inp->inp_refcount) == 0) + if (!refcount_release(&inp->inp_refcount)) return (false); MPASS(inp->inp_flags & INP_FREED); @@ -1745,7 +1745,7 @@ in_pcbrele_wlocked(struct inpcb *inp) INP_WLOCK_ASSERT(inp); - if (refcount_release(&inp->inp_refcount) == 0) + if (!refcount_release(&inp->inp_refcount)) return (false); MPASS(inp->inp_flags & INP_FREED);