projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
876edcc
)
cifsd: never return 1 on failure
author
Namjae Jeon
<namjae.jeon@samsung.com>
Wed, 26 May 2021 06:30:50 +0000
(15:30 +0900)
committer
Namjae Jeon
<namjae.jeon@samsung.com>
Wed, 26 May 2021 09:12:29 +0000
(18:12 +0900)
Never return 1 on failure.
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifsd/auth.c
patch
|
blob
|
history
diff --git
a/fs/cifsd/auth.c
b/fs/cifsd/auth.c
index
a89de24
..
7e56966
100644
(file)
--- a/
fs/cifsd/auth.c
+++ b/
fs/cifsd/auth.c
@@
-1144,7
+1144,7
@@
static int ksmbd_get_encryption_key(struct ksmbd_conn *conn, __u64 ses_id,
sess = ksmbd_session_lookup(conn, ses_id);
if (!sess)
- return
1
;
+ return
-EINVAL
;
ses_enc_key = enc ? sess->smb3encryptionkey :
sess->smb3decryptionkey;