From: Namjae Jeon Date: Wed, 26 May 2021 06:30:50 +0000 (+0900) Subject: cifsd: never return 1 on failure X-Git-Tag: accepted/tizen/unified/20230118.172025~6553^2~18^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=522dcc76269fcc27a3a0128ca7699270fae61b60;p=platform%2Fkernel%2Flinux-rpi.git cifsd: never return 1 on failure Never return 1 on failure. Reviewed-by: Dan Carpenter Signed-off-by: Namjae Jeon Signed-off-by: Steve French --- diff --git a/fs/cifsd/auth.c b/fs/cifsd/auth.c index a89de24..7e56966 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;