diff options
author | 2021-05-26 15:30:50 +0900 | |
---|---|---|
committer | 2021-05-26 18:12:29 +0900 | |
commit | 522dcc76269fcc27a3a0128ca7699270fae61b60 (patch) | |
tree | 65ecedee8164755256f1a8856daadcbc30b5e774 /fs/cifsd/auth.c | |
parent | cifsd: return zero in always success case (diff) | |
download | wireguard-linux-522dcc76269fcc27a3a0128ca7699270fae61b60.tar.xz wireguard-linux-522dcc76269fcc27a3a0128ca7699270fae61b60.zip |
cifsd: never return 1 on failure
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>
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 a89de24aa576..7e56966f87d4 100644 --- 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; |