mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
netlabel: fix an uninitialized warning in netlbl_unlabel_staticlist()
[ Upstream commit1ba86d4366
] Static checking revealed that a previous fix to netlbl_unlabel_staticlist() leaves a stack variable uninitialized, this patches fixes that. Fixes:866358ec33
("netlabel: fix our progress tracking in netlbl_unlabel_staticlist()") Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Paul Moore <paul@paul-moore.com> Reviewed-by: James Morris <jamorris@linux.microsoft.com> Link: https://lore.kernel.org/r/160530304068.15651.18355773009751195447.stgit@sifl Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
96fc6ad602
commit
140cde72b4
1 changed files with 1 additions and 1 deletions
|
@ -1180,7 +1180,7 @@ static int netlbl_unlabel_staticlist(struct sk_buff *skb,
|
||||||
u32 skip_bkt = cb->args[0];
|
u32 skip_bkt = cb->args[0];
|
||||||
u32 skip_chain = cb->args[1];
|
u32 skip_chain = cb->args[1];
|
||||||
u32 skip_addr4 = cb->args[2];
|
u32 skip_addr4 = cb->args[2];
|
||||||
u32 iter_bkt, iter_chain, iter_addr4 = 0, iter_addr6 = 0;
|
u32 iter_bkt, iter_chain = 0, iter_addr4 = 0, iter_addr6 = 0;
|
||||||
struct netlbl_unlhsh_iface *iface;
|
struct netlbl_unlhsh_iface *iface;
|
||||||
struct list_head *iter_list;
|
struct list_head *iter_list;
|
||||||
struct netlbl_af4list *addr4;
|
struct netlbl_af4list *addr4;
|
||||||
|
|
Loading…
Reference in a new issue