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:
03f1c3d
)
cifsd: fix wrong return value in ksmbd_crypt_message()
author
Namjae Jeon
<namjae.jeon@samsung.com>
Wed, 26 May 2021 06:35:26 +0000
(15:35 +0900)
committer
Namjae Jeon
<namjae.jeon@samsung.com>
Wed, 26 May 2021 09:12:48 +0000
(18:12 +0900)
Change error return instead of returning always success return.
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
711f8de
..
5a56dd6
100644
(file)
--- a/
fs/cifsd/auth.c
+++ b/
fs/cifsd/auth.c
@@
-1253,7
+1253,7
@@
int ksmbd_crypt_message(struct ksmbd_conn *conn, struct kvec *iov,
key);
if (rc) {
ksmbd_err("Could not get %scryption key\n", enc ? "en" : "de");
- return
0
;
+ return
rc
;
}
if (conn->cipher_type == SMB2_ENCRYPTION_AES128_GCM ||