]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netfilter: nfnetlink_log: silence bogus compiler warning
authorFlorian Westphal <fw@strlen.de>
Thu, 5 Oct 2023 08:53:08 +0000 (10:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Nov 2023 16:26:47 +0000 (17:26 +0100)
commitfa32e21c0568eabe4d5d0cc29c0fedce4222e617
tree24411b125835175f3f5dc87663bb7257cc8aacc6
parentdfcbb983eb6ec5050fdb83a57905891803073b75
netfilter: nfnetlink_log: silence bogus compiler warning

[ Upstream commit 2e1d175410972285333193837a4250a74cd472e6 ]

net/netfilter/nfnetlink_log.c:800:18: warning: variable 'ctinfo' is uninitialized

The warning is bogus, the variable is only used if ct is non-NULL and
always initialised in that case.  Init to 0 too to silence this.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202309100514.ndBFebXN-lkp@intel.com/
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nfnetlink_log.c