]> git.ipfire.org Git - thirdparty/linux.git/commit
smb3: fix uninitialized value for port in witness protocol move
authorSteve French <stfrench@microsoft.com>
Sat, 19 Jun 2021 17:22:20 +0000 (12:22 -0500)
committerSteve French <stfrench@microsoft.com>
Mon, 21 Jun 2021 02:28:17 +0000 (21:28 -0500)
commitff93b71a3eff25fe9d4364ef13b6e01d935600c6
treeb73428e10e1e83ee52a7119df81a1b57ad95ce43
parent3559134eccad022fc4a5a56910e8f7d38ab0d30d
smb3: fix uninitialized value for port in witness protocol move

Although in practice this can not occur (since IPv4 and IPv6 are the
only two cases currently supported), it is cleaner to avoid uninitialized
variable warnings.

Addresses smatch warning:
  fs/cifs/cifs_swn.c:468 cifs_swn_store_swn_addr() error: uninitialized symbol 'port'.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
CC: Samuel Cabrero <scabrero@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifs_swn.c