From nobody Tue Mar 07 13:28:23 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 4PWGVH5bTpz3w9Jd; Tue, 7 Mar 2023 13:28:23 +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 4PWGVH3zxQz3vZJ; Tue, 7 Mar 2023 13:28:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678195703; 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=0oAgKjNgTLai524rMo3o8doFdoF+kbqXRDTGw2MTly8=; b=i8qaCSVl4lKprOJMdb2oRSVK5YrtRQ/Ui9CREX8GcwrnuBZksmg2S93wNOdr0UL1EpmrM8 bW3a3MjKBZWlanxdC4H6F8g0+LZgBZHYv5d/5oouQk5oa7Q9aZJUcFoxntyhTQ/NvkOn4q /XJsh59AWN4uTWY6p5zuCQKLd+GjN7ONI/MMVcEPqJIVnelkI0YazfMAP2aonuBdW752kG s38Wn7wTUMVehbpSNFX8r31xifV7W+z1XxCD6Dw/HEvTbCkbCsgccSpa9ziYyBlqnLVc4l n4GkOMgsHcS6kGn79/CIxcR/yR+03NdYigFz/uT6dgCrNdlb86392jE0YXG26A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678195703; 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=0oAgKjNgTLai524rMo3o8doFdoF+kbqXRDTGw2MTly8=; b=nIeoBLXT1EwXIrre2WJdMxcZ6RQUwGASoQYRfDKQe5oiKWssrJivmNmsaS51Z6vPu0GSTY MhvbH18vsEbCVxKb+Z0myW+8W+yZ6VjMcSPmc/t7kRxj0FEPXWQPEY0FKH+3EU9avbr8g9 80dlilIrGLU2PRRSEjaWGlJclULcGvrZUq0+aCBpCJfJpINlyVpFY3Ao+mTw1wmvI4/Ec0 LUcUrZdlgo/GAmFzMvx6MvuSQk+EbQKnv5bcBHOM/zeJ8RsNunR/T4ZLdaUk+WxAve+2Yf 8RKp8XbDV7hRSZgrTeqTy46+XWXCrVPGpnDSX9tE+oGSQanvWR4u5utr9BgiKQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678195703; a=rsa-sha256; cv=none; b=uE7QlCiN9Z89dURNnWdWituCjMHJ07xB+wmN9cTIEelTlTImDVqChujF9LQ73zGUWwSkhA UX7Ecr3zMng7a/I9PnU2eA11mk3QkUw+tlxXMWincZ0PG9xoNjO+tc99O8qWZmmoHEPmgB hWbajHO4Ix/JQhomi4aTQyODokf30Yt2KBHeti2Ql5CIYlTPVm2x2SN5yyOIGfYsLD7bGJ 6bzRS+AGRH8JIEK+03mLc/HRBHRy1ckqa6ft1PrQNLTOIfGILtJ2VV0xba0/ibCMQ9cwD2 hNQC+VFTP8bzW9vncl6PApZJFBzs0D/EKe+SKr/2vOTfiN/BEsrkkpROFo8KGw== 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 4PWGVH35nszlWY; Tue, 7 Mar 2023 13:28:23 +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 327DSNqX077967; Tue, 7 Mar 2023 13:28:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 327DSN4Q077966; Tue, 7 Mar 2023 13:28:23 GMT (envelope-from git) Date: Tue, 7 Mar 2023 13:28:23 GMT Message-Id: <202303071328.327DSN4Q077966@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 1af993335913 - releng/13.2 - netlink: call genetlink notification handler upon successful family search. 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: emaste X-Git-Repository: src X-Git-Refname: refs/heads/releng/13.2 X-Git-Reftype: branch X-Git-Commit: 1af993335913b4c786da719015b5ba17cc8d5b2b Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch releng/13.2 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=1af993335913b4c786da719015b5ba17cc8d5b2b commit 1af993335913b4c786da719015b5ba17cc8d5b2b Author: Alexander V. Chernikov AuthorDate: 2023-02-17 17:58:53 +0000 Commit: Ed Maste CommitDate: 2023-03-07 13:27:57 +0000 netlink: call genetlink notification handler upon successful family search. Approved by: re (cperciva) (cherry picked from commit 7cbe771f013f6cf3316910648f6d46641cad7f44) (cherry picked from commit ac40ea6fbb4e6af98a4540fc8fd5a3e824cb181d) --- sys/netlink/netlink_generic.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/netlink/netlink_generic.c b/sys/netlink/netlink_generic.c index 028ea24fc5e9..066379e2afae 100644 --- a/sys/netlink/netlink_generic.c +++ b/sys/netlink/netlink_generic.c @@ -160,9 +160,8 @@ genl_unregister_family(const char *family_name) GENL_LOCK(); struct genl_family *gf = find_family(family_name); - nlctrl_notify(gf, CTRL_CMD_DELFAMILY); - if (gf != NULL) { + nlctrl_notify(gf, CTRL_CMD_DELFAMILY); found = true; unregister_groups(gf); /* TODO: zero pointer first */