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:
Родитель
876edcc4cf
Коммит
522dcc7626
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче