mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
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>
This commit is contained in:
parent
876edcc4cf
commit
522dcc7626
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue