aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNamjae Jeon <[email protected]>2021-03-30 12:58:26 +0900
committerSteve French <[email protected]>2021-05-10 19:15:29 -0500
commit7cb82de3cdf2da0acd6fc3e670c7271ded37e116 (patch)
treebd902c107b5a361115cace44bc675bd7d6241b01
parentc36fca8630dda0fba7b9672f3c99ac4e260a0fd0 (diff)
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 <[email protected]> Signed-off-by: Steve French <[email protected]>
-rw-r--r--fs/cifsd/vfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifsd/vfs.c b/fs/cifsd/vfs.c
index f93cc55ea153..da44d131e25b 100644
--- a/fs/cifsd/vfs.c
+++ b/fs/cifsd/vfs.c
@@ -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;