smb: client: fix warning in cifs_match_super()
authorSteve French <stfrench@microsoft.com>
Wed, 19 Jul 2023 02:18:49 +0000 (21:18 -0500)
committerSteve French <stfrench@microsoft.com>
Wed, 19 Jul 2023 02:18:49 +0000 (21:18 -0500)
commit72507dfd0d9d4abe191b9eeed954f0030b10e409
treee0f2636757a9153f4c4ecc435fe3acc4c0b25a82
parenta8db3245dd31ce1dbec03463bec672bad1cfc2de
smb: client: fix warning in cifs_match_super()

Fix potential dereference of ERR_PTR @tlink as reported by kernel test
robot

  fs/smb/client/connect.c:2775 cifs_match_super() error: 'tlink'
  dereferencing possible ERR_PTR()

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