projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c36fca8
)
cifsd: fix error return code in ksmbd_vfs_remove_file()
author
Namjae Jeon
<namjae.jeon@samsung.com>
Tue, 30 Mar 2021 03:58:26 +0000
(12:58 +0900)
committer
Steve French
<stfrench@microsoft.com>
Tue, 11 May 2021 00:15:29 +0000
(19:15 -0500)
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>
fs/cifsd/vfs.c
patch
|
blob
|
history
diff --git
a/fs/cifsd/vfs.c
b/fs/cifsd/vfs.c
index
f93cc55
..
da44d13
100644
(file)
--- 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 -E
NOENT
;
+ return -E
INVAL
;
if (ksmbd_override_fsids(work))
return -ENOMEM;