Skip to content

Commit

Permalink
cifsd: never return 1 on failure
Browse files Browse the repository at this point in the history
Never return 1 on failure.

Reviewed-by: Dan Carpenter <[email protected]>
Signed-off-by: Namjae Jeon <[email protected]>
Signed-off-by: Steve French <[email protected]>
  • Loading branch information
namjaejeon committed May 26, 2021
1 parent 876edcc commit 522dcc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/cifsd/auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 522dcc7

Please sign in to comment.