cifs: add missing return value check for cifs_sb_tlink
authorShyam Prasad N <sprasad@microsoft.com>
Wed, 26 Jul 2023 17:02:11 +0000 (17:02 +0000)
committerSteve French <stfrench@microsoft.com>
Wed, 26 Jul 2023 20:41:27 +0000 (15:41 -0500)
commita171eb5cac427fa8d084eaf5e47fbe4c0f1e279f
treeb2dda11ae18f8c3346c0bcdab0a5a53956bc95ad
parent19826558210b9102a7d4681c91784d137d60d71b
cifs: add missing return value check for cifs_sb_tlink

Whenever a tlink is obtained by cifs_sb_tlink, we need
to check that the tlink returned is not an error.
It was missing with the last change here.

Fixes: b3edef6b9cd0 ("cifs: allow dumping keys for directories too")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/ioctl.c