mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
crypto: fix cert error
Using this patch we are fixing below cert error:- 1. cert_mem30_c_violation: Dereferencing freed pointer ctx. CID 660103 Bug 3512545 Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com> Change-Id: I4a37aa7743d07669805254ec2fc088a3835f5f3e Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2898370 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
8229868ec8
commit
5e3551960b
@@ -1872,9 +1872,9 @@ static int tnvvse_crypto_dev_release(struct inode *inode, struct file *filp)
|
|||||||
mutex_destroy(&ctx->lock);
|
mutex_destroy(&ctx->lock);
|
||||||
kfree(ctx->sha_result);
|
kfree(ctx->sha_result);
|
||||||
kfree(ctx->rng_buff);
|
kfree(ctx->rng_buff);
|
||||||
|
nvvse_devnode[ctx->node_id].is_node_open = false;
|
||||||
kfree(ctx);
|
kfree(ctx);
|
||||||
filp->private_data = NULL;
|
filp->private_data = NULL;
|
||||||
nvvse_devnode[ctx->node_id].is_node_open = false;
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user