]> git.hungrycats.org Git - linux/commit
netfilter: nfnetlink_queue: silence bogus compiler warning
authorFlorian Westphal <fw@strlen.de>
Fri, 26 Nov 2021 12:04:03 +0000 (13:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Mar 2024 14:38:46 +0000 (14:38 +0000)
commit84d3baab4b8945b8143fcffab21d5e93ed7f9672
treef45f9f9d2ccf869e6fd52ab17f97bc37129d2369
parent4225152bfb7721ba919a0fe185a3dd169ed28520
netfilter: nfnetlink_queue: silence bogus compiler warning

[ Upstream commit b43c2793f5e9910862e8fe07846b74e45b104501 ]

net/netfilter/nfnetlink_queue.c:601:36: warning: variable 'ctinfo' is
uninitialized when used here [-Wuninitialized]
   if (ct && nfnl_ct->build(skb, ct, ctinfo, NFQA_CT, NFQA_CT_INFO) < 0)

ctinfo is only uninitialized if ct == NULL.  Init it to 0 to silence this.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Stable-dep-of: 62e7151ae3eb ("netfilter: bridge: confirm multicast packets before passing them up the stack")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nfnetlink_queue.c