aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2019-10-14 11:02:01 +0000
committerGreg Kroah-Hartman <[email protected]>2019-10-14 13:40:08 +0000
commit153c5d8191c26165dbbd2646448ca7207f7796d0 (patch)
tree85511b7ab17251e9fb6576e233101dd0686aaf9b /net/unix/af_unix.c
parentLinux 5.4-rc3 (diff)
downloadkernel-153c5d8191c26165dbbd2646448ca7207f7796d0.tar.gz
kernel-153c5d8191c26165dbbd2646448ca7207f7796d0.zip
staging: wlan-ng: fix exit return when sme->key_idx >= NUM_WEPKEYS
Currently the exit return path when sme->key_idx >= NUM_WEPKEYS is via label 'exit' and this checks if result is non-zero, however result has not been initialized and contains garbage. Fix this by replacing the goto with a return with the error code. Addresses-Coverity: ("Uninitialized scalar variable") Fixes: 0ca6d8e74489 ("Staging: wlan-ng: replace switch-case statements with macro") Signed-off-by: Colin Ian King <[email protected]> Cc: stable <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions