OSDN Git Service

smb: client: fix warning in generic_ip_connect()
authorPaulo Alcantara <pc@manguebit.com>
Mon, 19 Jun 2023 22:23:13 +0000 (19:23 -0300)
committerSteve French <stfrench@microsoft.com>
Wed, 21 Jun 2023 04:03:03 +0000 (23:03 -0500)
commitf0b6a834a8f0d267a112b150827bb65d4fdc471c
tree71845acb8853efda73705f8d0e8ccd89b2ebedd5
parent215533f888dcf18f7cfbbf520bdd52e67ac6265a
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/smb/client/connect.c