From: Namjae Jeon Date: Wed, 26 May 2021 06:27:11 +0000 (+0900) Subject: cifsd: move ret check before the out label X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7e38ea254c8274ea25ffc28df65ac2683c5f8a72;p=linux.git cifsd: move ret check before the out label Move ret check before the out label. 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 ab698093f7283..092db15e42346 100644 --- a/fs/cifsd/auth.c +++ b/fs/cifsd/auth.c @@ -311,9 +311,9 @@ static int calc_ntlmv2_hash(struct ksmbd_session *sess, char *ntlmv2_hash, } ret = crypto_shash_final(CRYPTO_HMACMD5(ctx), ntlmv2_hash); -out: if (ret) ksmbd_debug(AUTH, "Could not generate md5 hash\n"); +out: kfree(uniname); kfree(domain); ksmbd_release_crypto_ctx(ctx);