cifsd: move ret check before the out label

Move ret check before the out label.

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:
Namjae Jeon 2021-05-26 15:27:11 +09:00
parent fd43cbbe0a
commit 7e38ea254c

View file

@ -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);