🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #14501

[PATCH net-next 02/15] batman-adv: mcast: explicitly initialize mcast.want_all_rtr{4,6}_list

#14501
From: Simon Wunderlich
Date: Wed, 11 Nov 2026 10:27
34 lines
10354 bytes
From: Sven Eckelmann <sven@narfation.org>

All mcast.want_*_list are initialized in batadv_mesh_init() - with the
exception of mcast.want_all_rtr4_list + mcast.want_all_rtr6_list. At the
moment, it works because INIT_HLIST_HEAD just initializes it to NULL and
the netdev private data is already set to 0 before being passed to
.ndo_init.

For consistency purposes, also initialize mcast.want_all_rtr4_list +
mcast.want_all_rtr6_list explicitly.

Acked-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
---
 net/batman-adv/main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/batman-adv/main.c b/net/batman-adv/main.c
index 3b9fa861be7be..cae2a48fa0ad9 100644
--- a/net/batman-adv/main.c
+++ b/net/batman-adv/main.c
@@ -216,6 +216,8 @@ int batadv_mesh_init(struct net_device *mesh_iface)
 	INIT_HLIST_HEAD(&bat_priv->mcast.want_all_unsnoopables_list);
 	INIT_HLIST_HEAD(&bat_priv->mcast.want_all_ipv4_list);
 	INIT_HLIST_HEAD(&bat_priv->mcast.want_all_ipv6_list);
+	INIT_HLIST_HEAD(&bat_priv->mcast.want_all_rtr4_list);
+	INIT_HLIST_HEAD(&bat_priv->mcast.want_all_rtr6_list);
 #endif
 	INIT_LIST_HEAD(&bat_priv->tt.changes_list);
 	INIT_HLIST_HEAD(&bat_priv->tt.req_list);
-- 
2.47.3
Technical Details
Message-ID: <20261111102729.2096241-3-sw@simonwunderlich.de>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360991-linux-kernel-netdev=dewy.ru
References: <20261111102729.2096241-1-sw@simonwunderlich.de>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360991-linux-kernel-netdev=dewy.ru
From: sw@simonwunderlich.de (Simon Wunderlich)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next 02/15] batman-adv: mcast: explicitly initialize mcast.want_all_rtr{4,6}_list
Date: Wed, 11 Nov 2026 11:27:16 +0100
Organization: Usenet Network
Message-ID: <20261111102729.2096241-3-sw@simonwunderlich.de>
References: <20261111102729.2096241-1-sw@simonwunderlich.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="831042"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:/hl7zVv6+JNTz7j4xDaJTPh2bMo= sha256:pgNzAiZVKzS5oIO+5FCKhG6Sb3b4fzVTHnQLUMZKlFc=
	sha1:Bh2TQUhczanH00hXU0qdTpDalo0= sha256:7HuM1omzGm33Zd99rzv08raKwIhRpweLi2LG2ClHMzk=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 94577113EAD; Wed, 11 Nov 2026 13:33:46 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=simonwunderlich.de
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id kL3LW5xdErkf;
	Wed, 11 Nov 2026 13:33:43 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-360991-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=simonwunderlich.de
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 26679113EA5; Wed, 11 Nov 2026 13:33:34 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id A71E2124CC5; Wed, 11 Nov 2026 10:28:25 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794392866;
	b=frC62oNmN+/hm70HzR4xRizZVDWuZTUYHkduokub+N9DGHqxfufe5usVWE48Lged+HgX
	 g6ZzkQG/RloGTQIpP8TvVBEW9u204l90Ohi3vjrWT8So4ACh9IxMnHwupaz68qkNe15xQ
	 VQ92ZrwsYrXzVrxoL6AAgaUd8DRFUZk1VpNZojOKd667C+tyVJb1BGw0J8/zgblU7Kny0
	 QHmRKW8iBX0My8j2r+casdVhWhqyUjuy37f+Cpx9UTZif9zlmNy60KcmBSbZd45+i8KcJ
	 fmJFhC9hwZzKAmizYk7vJqySGGrtOtW89vd9n/5suvJLQYWJn55j4JHzAG+46Z5K+2A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794392866;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:From:To:
	 Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=HljEgh7Ck6LSl06ejQODxRbfgqi7X5YtOB5itCLKdOU=;
	b=gEKGPWdYP46s/WlRqZucq8nfaV9JRYLvgMnMKnYU2Yt4o+Szsk0gys0VPY5FNgk/K05Z
	 g8ZXQUmApyAEgtmE65URevOvkNfGMFU57ETv5/xtuvQFlAVsANGTndrTRhaYPQnuThxXL
	 iqmgt/Jljn3ndq+S+/JkNyTHEgSW20/fbE3aMcBEpHN4HeHOs5uhmbcHfl/nVDWSnCcey
	 eAdSIw5ifqlNepLClXQD5hmmvs99B4jL23J4fED2h1U539yEgcEbmPhaF9HHmrhQWuaZz
	 PegpuTNvlH/WO69kbuRm2az/7/YHE0Z7Ag+uEVJp6wjjDFvF/I+HUNlYb6hqdGp0MwQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=simonwunderlich.de header.i=@simonwunderlich.de header.a=rsa-sha256 header.s=09092022 header.b=jl3spfgs;
	dmarc=pass header.from=simonwunderlich.de;
	spf=pass smtp.mailfrom=simonwunderlich.de;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 681E9606A334;
	Wed, 11 Nov 2026 10:27:46 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=simonwunderlich.de header.i=@simonwunderlich.de header.a=rsa-sha256 header.s=09092022 header.b=jl3spfgs
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=23.88.38.48
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794392860;
	b=xdSi5e6rq+hvRo2F2I7+qCLo1El8nhv5JGbviVa7OYKzhdnMKCEAgyq6zG9Z6EkjSiCD
	 ghnhtP2m5vr276/O724olBvei2rBGtuVal5i45/v+06/dIMsm+Iz4YLaek90dWzRgKZRa
	 ZM4PZCU51iUVlOiwlYsWOHUXDu8vBl0KgVXtyhpEyDNWfVUDPLT6KyzmIiGJDFtRqip2Q
	 boqoQRNlGdVkQC4xnOYPOcLVK6eBGt35CUdHu6dCON4VZzOAvbTYPIHA1KPC+oNc4yDa9
	 b2+9NQ7ONOpUa/xnxh1QXRz6MM4LzUTSHs93ICts/vkT2PufwSHOadYhdZ+jAg3Fwlg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794392860;
	h=DMARC-Filter:Received:DKIM-Signature:From:To:Cc:Subject:Date:
	 Message-ID:X-Mailer:In-Reply-To:References:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=HljEgh7Ck6LSl06ejQODxRbfgqi7X5YtOB5itCLKdOU=;
	b=adALq5ukJgbaHeSyTybG2mHxMfMAO+dphHFYU+BuY9fNCLlU5wCJ5Mrf56q8bwPbZto9
	 f7JEbsVMn5Xh/OsQ02ASvC/6wAIEroN2rmBGnMv9E3w+0S5cSi3WSS3g5zIg3WZCA5ocX
	 Oof4DZ7mrRlg0F1unEnfvhTzpYgi9KnUs2QjvNSO/x3zFLvUnPRng1g8CoqPlWh+nrByj
	 EGRhHG1i1ESIMr8eOEc55okXU9+9vPV/Ul0//tSfgCxyModaVjzPiMmzSJD+QF3cMAJOU
	 ql+OEFD3BDBvWuehEI80WdLhewVdvvPGsEQdNH/pBiNqtScbNI4NYgB38GVUhIfBy3g==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=simonwunderlich.de;
	spf=pass smtp.mailfrom=simonwunderlich.de;
	dkim=pass header.d=simonwunderlich.de header.i=@simonwunderlich.de header.a=rsa-sha256 header.s=09092022 header.b=jl3spfgs;
	arc=none smtp.remote-ip=23.88.38.48
X-Received: from mail.simonwunderlich.de (mail.simonwunderlich.de [23.88.38.48])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with UTF8SMTPS id 1561F606A326
	for <netdev@vger.kernel.org>; Wed, 11 Nov 2026 10:27:40 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1561F606A326
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=simonwunderlich.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=simonwunderlich.de
X-Received: from kero.packetmixer.de (p200300c59740deD843BE7e4a980E9c65.dip0.t-ipconnect.de [IPv6:2003:c5:9740:ded8:43be:7e4a:980e:9c65])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange secp256r1 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by mail.simonwunderlich.de (Postfix) with UTF8SMTPSA id B6600FA112;
	Wed, 11 Nov 2026 11:27:32 +0100 (CET)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=simonwunderlich.de;
	s=09092022; t=1794392852;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=HljEgh7Ck6LSl06ejQODxRbfgqi7X5YtOB5itCLKdOU=;
	b=jl3spfgsr0g3OoqjUiEqZON+IaYXqi/1A5JlwfKjvZDPXI+BNEeJG82Sx4F+WtnIQXcuU7
	ppsNSfR/JGcfjBOw6gZ17wkKsdZwpHyqkWSkbrZGKls2VxySIrgdlzaqK5I7Pckbg63eNj
	7P/K6+AVFNaanfRCNjnq7lvIP44nGsvOdXjYgcDs+Uyu3+HXkxKbkBr4qYtme4WqD5Y4FJ
	xA6menFhbMdYppWR660rLak13EX8MuG6Agu6PLBPC1vDwMatBahDgTY4CxBp0FFx7I03rB
	qMJqv9MB3PE7R500R20932WvFE+fSC5o2ALGn6p4eVXlYDxYK8AJtrciy+vQpg==
X-Cc: "David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>,
	Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>,
	b.a.t.m.a.n@lists.open-mesh.org,
	Sven Eckelmann <sven@narfation.org>,
	Linus Lüssing <linus.luessing@c0d3.blue>,
	Simon Wunderlich <sw@simonwunderlich.de>
X-Mailer: git-send-email 2.47.3
X-In-Reply-To: <20261111102729.2096241-1-sw@simonwunderlich.de>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list