smb: client: fix warning in generic_ip_connect()
authorSteve French <stfrench@microsoft.com>
Wed, 19 Jul 2023 02:23:46 +0000 (21:23 -0500)
committerSteve French <stfrench@microsoft.com>
Wed, 19 Jul 2023 02:23:46 +0000 (21:23 -0500)
commit7b1438fbb5cbbad1ecdf83d4d14091b71b45b645
tree42b0d47ecdede34dc1bd200493f67b61f4327372
parentca94b3d37a97f267884e76269aed4a38ed38feb5
smb: client: fix warning in generic_ip_connect()

This fixes the following warning reported by kernel test robot

  fs/smb/client/connect.c:2974 generic_ip_connect() error: we
  previously assumed 'socket' could be null (see line 2962)

Link: https://lore.kernel.org/all/202306170124.CtQqzf0I-lkp@intel.com/
Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c