cifsd: fix error return code in ksmbd_vfs_remove_file()

Change -ENOENT error to -EINVAL to response STATUS_INVALID_PARAMETER.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
Namjae Jeon 2021-03-30 12:58:26 +09:00 committed by Steve French
parent c36fca8630
commit 7cb82de3cd
1 changed files with 1 additions and 1 deletions

View File

@ -596,7 +596,7 @@ int ksmbd_vfs_remove_file(struct ksmbd_work *work, char *name)
last = extract_last_component(name);
if (!last)
return -ENOENT;
return -EINVAL;
if (ksmbd_override_fsids(work))
return -ENOMEM;