]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mptcp: token: fix unititialized variable
authorDavide Caratti <dcaratti@redhat.com>
Mon, 2 Nov 2020 09:09:49 +0000 (10:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Nov 2020 11:38:58 +0000 (12:38 +0100)
commit177ee26ca0a5ef13d0a0dcc4adb7f1589e12953d
tree5a13434e103c3e33ed19352aae29253ac3092a83
parent1789e80f40980a41d74ea9abbcc7b8d503e53e32
mptcp: token: fix unititialized variable

[ Upstream commit e16b874ee87aa70cd0a7145346ff5f41349b514c ]

gcc complains about use of uninitialized 'num'. Fix it by doing the first
assignment of 'num' when the variable is declared.

Fixes: 96d890daad05 ("mptcp: add msk interations helper")
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Link: https://lore.kernel.org/r/49e20da5d467a73414d4294a8bd35e2cb1befd49.1604308087.git.dcaratti@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mptcp/token.c