Skip to content

Commit 1ba86d4

Browse files
pcmoorekuba-moo
authored andcommitted
netlabel: fix an uninitialized warning in netlbl_unlabel_staticlist()
Static checking revealed that a previous fix to netlbl_unlabel_staticlist() leaves a stack variable uninitialized, this patches fixes that. Fixes: 866358e ("netlabel: fix our progress tracking in netlbl_unlabel_staticlist()") Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Paul Moore <[email protected]> Reviewed-by: James Morris <[email protected]> Link: https://lore.kernel.org/r/160530304068.15651.18355773009751195447.stgit@sifl Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 057a10f commit 1ba86d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netlabel/netlabel_unlabeled.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ static int netlbl_unlabel_staticlist(struct sk_buff *skb,
11671167
u32 skip_bkt = cb->args[0];
11681168
u32 skip_chain = cb->args[1];
11691169
u32 skip_addr4 = cb->args[2];
1170-
u32 iter_bkt, iter_chain, iter_addr4 = 0, iter_addr6 = 0;
1170+
u32 iter_bkt, iter_chain = 0, iter_addr4 = 0, iter_addr6 = 0;
11711171
struct netlbl_unlhsh_iface *iface;
11721172
struct list_head *iter_list;
11731173
struct netlbl_af4list *addr4;

0 commit comments

Comments
 (0)