netlabel: fix an uninitialized warning in netlbl_unlabel_staticlist()
authorPaul Moore <paul@paul-moore.com>
Fri, 13 Nov 2020 21:30:40 +0000 (16:30 -0500)
committerJakub Kicinski <kuba@kernel.org>
Sat, 14 Nov 2020 20:07:57 +0000 (12:07 -0800)
commit1ba86d4366e023d96df3dbe415eea7f1dc08c303
tree2e6e4050fdab65664836a8ad52314d2caefe1cdd
parent057a10fa1f73d745c8e69aa54ab147715f5630ae
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: 866358ec331f ("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>
net/netlabel/netlabel_unlabeled.c