diff options
author | 2021-05-26 15:35:26 +0900 | |
---|---|---|
committer | 2021-05-26 18:12:48 +0900 | |
commit | 27aa646db0f0465c5abf8e5cd545e070e7f14120 (patch) | |
tree | 3671b753da8c39cad106c1b07b9b880fc2bed56e | |
parent | cifsd: remove unneeded initialization of rc variable in ksmbd_crypt_message() (diff) | |
download | wireguard-linux-27aa646db0f0465c5abf8e5cd545e070e7f14120.tar.xz wireguard-linux-27aa646db0f0465c5abf8e5cd545e070e7f14120.zip |
cifsd: fix wrong return value in ksmbd_crypt_message()
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>
Diffstat (limited to '')
-rw-r--r-- | fs/cifsd/auth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifsd/auth.c b/fs/cifsd/auth.c index 711f8dec38e1..5a56dd65fa06 100644 --- 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 || |