aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNamjae Jeon <[email protected]>2021-05-26 15:27:11 +0900
committerNamjae Jeon <[email protected]>2021-05-26 18:12:04 +0900
commit7e38ea254c8274ea25ffc28df65ac2683c5f8a72 (patch)
tree2f4722a1728c3a5b220419f4908854e6e0e89ccb
parentfd43cbbe0af5e528ec7e1f85e6e942d1b77ff781 (diff)
cifsd: move ret check before the out label
Move ret check before the out label. Reviewed-by: Dan Carpenter <[email protected]> Signed-off-by: Namjae Jeon <[email protected]> Signed-off-by: Steve French <[email protected]>
-rw-r--r--fs/cifsd/auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifsd/auth.c b/fs/cifsd/auth.c
index ab698093f728..092db15e4234 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);