smb: propagate error code of extract_sharename()
authorKatya Orlova <e.orlova@ispras.ru>
Tue, 15 Aug 2023 13:38:31 +0000 (16:38 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Sep 2023 10:28:00 +0000 (12:28 +0200)
commit47f72ee50226ec0da35a608ae781db16a7cbdb31
tree29eabc17793a87e4239c53d903e30ec0b6f9e3e6
parent60e3318e3e900ba1ddfead937012b3432dfccc92
smb: propagate error code of extract_sharename()

[ Upstream commit efc0b0bcffcba60d9c6301063d25a22a4744b499 ]

In addition to the EINVAL, there may be an ENOMEM.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 70431bfd825d ("cifs: Support fscache indexing rewrite")
Signed-off-by: Katya Orlova <e.orlova@ispras.ru>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/client/fscache.c