From nobody Fri Feb 17 18:16:47 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 4PJKlM5c8vz3rGZq; Fri, 17 Feb 2023 18:16:47 +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 4PJKlM4Hw8z3t1Q; Fri, 17 Feb 2023 18:16:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676657807; 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=4BCe3GGO6l15Yl20rbyFuGq9MIj0ncERTsoaILWieyQ=; b=aUpiGvCzFsXO2DXIFWVwdo5F4h83kfsQ8Qm0SVr8sZLQkZ88aORC8vK1vRzBeJ5LwE4DJ9 Z0AzO6G63lIa37rfZ3bC0vpq0hTKH0RkPCd8h9SqhXi/XzubwNXgvRJiG7Rb9d18tR63DY cze7w6/+Zf1tMQZYVcYPRuJ295RxoPcMKn3Hj9qh9PQOSKeN80iWzXjoupDvpbirg5yut9 2yboz/zlIAxbmEoXuLyt0YP6fCIlO16bAxbevAPE5hRaGptfjacGAUfT06BTtZC2ymdN9u Bjk62uFAEEBN0v75puViJN4Hx2Ir8ax9S8YfpIVMuoNPKzBLEzDF4B/D1uavNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676657807; 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=4BCe3GGO6l15Yl20rbyFuGq9MIj0ncERTsoaILWieyQ=; b=ks8jorMmPOdI6vwOT0LJj/ppxamhUm18jwKZhL2gDWs4qzSqEGctB8mg4pZR3EEd35y8bk yZ4siwbFDAuOPyUCX5FuGvqfGMse+qJQ/iVmllL8Pu0rg+fP+cezjhy0YyFj66z+WWWDoK VdY2rWJw+XLzkBgFhopF3Hy21jLdqPx5lUEWmoNoVoOMShiB7Ran+ZdleOw3Mi+q7VgSLf P8lW+GuHVUduNRcsROgaDnQvmQT6JhT13kLpKAJoOujC+0n1mQUYko+qE+0V05L9r5oreH Mx41ziaTOVJ/WHPUJB3+yLXgUX6+9yLZmpIxPh7XKSmNZV3JdqGw+9fW6Yt3/w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676657807; a=rsa-sha256; cv=none; b=SZdsmQMJOKIRhF7arXuE1TK4uWbLrlWPFKXPQOT+THDKtAZ1hxArGTj+EKbMIrgMP5JrKL aYD5YawVacuKx9U1nYTxvH+vdTHoM/SUV03s/4/OUvoWJsEX4f6MMIT+2c7FVn1g1DUyNb P2WihrS2hrZmxueZbeyimNOrFKheDcg/KHh35TZurae8UIb4o3wc3r7/YHCIQ8NSCETc/S BVsUMb+MKfinpdTkFYrr0E54X2z119zqgC9S8qdolFkcS0GzEGPYF4xAyPB7+NILWbiMTI K3xD9kbSklI/+PI6UwhIWRlCt5Y53lnV6lXED39rNnc5r0UQKlX5W9pj6ULQpw== 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 4PJKlM35vhzsT8; Fri, 17 Feb 2023 18:16:47 +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 31HIGlTA054379; Fri, 17 Feb 2023 18:16:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31HIGlEJ054378; Fri, 17 Feb 2023 18:16:47 GMT (envelope-from git) Date: Fri, 17 Feb 2023 18:16:47 GMT Message-Id: <202302171816.31HIGlEJ054378@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Alexander V. Chernikov" Subject: git: 7cbe771f013f - main - 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: melifaro X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7cbe771f013f6cf3316910648f6d46641cad7f44 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=7cbe771f013f6cf3316910648f6d46641cad7f44 commit 7cbe771f013f6cf3316910648f6d46641cad7f44 Author: Alexander V. Chernikov AuthorDate: 2023-02-17 17:58:53 +0000 Commit: Alexander V. Chernikov CommitDate: 2023-02-17 18:16:07 +0000 netlink: call genetlink notification handler upon successful family search. MFC after: 3 days --- 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 */