OSDN Git Service

smb: client: fix warning in cifs_match_super()
authorPaulo Alcantara <pc@manguebit.com>
Mon, 19 Jun 2023 19:52:01 +0000 (16:52 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 19 Jun 2023 23:16:26 +0000 (18:16 -0500)
commitfc1bd51d110e206da5bee07e889d285c267a6874
treec81c4f114f75d988ad0aa53c6e7b82427a233414
parentdc765027ed2941985fbb8ef86139e6289b36fc43
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/smb/client/connect.c