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:
parent
fd43cbbe0a
commit
7e38ea254c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue