crypto: fix memory leak issue

Using this patch we are fixing memory leak
issue

Bug 4064812

Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com>
Change-Id: Ifd2e74e5d1b9b6cbd91a6ec65e45626066c9a1f5
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2888604
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: Suresh Venkatachalam <skathirampat@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Manish Bhardwaj
2023-04-15 10:20:44 +05:30
committed by mobile promotions
parent c46d90ef1a
commit f9a0264f89

View File

@@ -2104,6 +2104,7 @@ static long tnvvse_crypto_dev_ioctl(struct file *filp,
out:
mutex_unlock(&ctx->lock);
kfree(tsec_keyload_status);
return ret;
}