mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 14:44:12 +00:00
smb: propagate error code of extract_sharename()
[ Upstream commitefc0b0bcff
] In addition to the EINVAL, there may be an ENOMEM. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes:70431bfd82
("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>
This commit is contained in:
parent
7f56ae02d9
commit
cdbb5e973f
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ int cifs_fscache_get_super_cookie(struct cifs_tcon *tcon)
|
|||
sharename = extract_sharename(tcon->tree_name);
|
||||
if (IS_ERR(sharename)) {
|
||||
cifs_dbg(FYI, "%s: couldn't extract sharename\n", __func__);
|
||||
return -EINVAL;
|
||||
return PTR_ERR(sharename);
|
||||
}
|
||||
|
||||
slen = strlen(sharename);
|
||||
|
|
Loading…
Reference in a new issue