diff options
author | 2021-05-26 15:27:11 +0900 | |
---|---|---|
committer | 2021-05-26 18:12:04 +0900 | |
commit | 7e38ea254c8274ea25ffc28df65ac2683c5f8a72 (patch) | |
tree | 2f4722a1728c3a5b220419f4908854e6e0e89ccb | |
parent | cifsd: just return smbhash() instead of using rc return value (diff) | |
download | wireguard-linux-7e38ea254c8274ea25ffc28df65ac2683c5f8a72.tar.xz wireguard-linux-7e38ea254c8274ea25ffc28df65ac2683c5f8a72.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | fs/cifsd/auth.c | 2 |
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); |