netfilter: nf_conntrack_bridge: initialize err to 0
authorLinkui Xiao <xiaolinkui@kylinos.cn>
Wed, 1 Nov 2023 03:20:18 +0000 (11:20 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:19:52 +0000 (17:19 +0000)
commit5772b7309818c5c447d01d1f3eae9f93f2c64a6b
tree44e3bbd86eaac30a7b276460878cecbe8a15d324
parent069a3ec329ff43e7869a3d94c62cd03203016bce
netfilter: nf_conntrack_bridge: initialize err to 0

[ Upstream commit a44af08e3d4d7566eeea98d7a29fe06e7b9de944 ]

K2CI reported a problem:

consume_skb(skb);
return err;
[nf_br_ip_fragment() error]  uninitialized symbol 'err'.

err is not initialized, because returning 0 is expected, initialize err
to 0.

Fixes: 3c171f496ef5 ("netfilter: bridge: add connection tracking system")
Reported-by: k2ci <kernel-bot@kylinos.cn>
Signed-off-by: Linkui Xiao <xiaolinkui@kylinos.cn>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/bridge/netfilter/nf_conntrack_bridge.c