From f9a0264f89f4044c7c61ae8a94c49c83b5a3182f Mon Sep 17 00:00:00 2001 From: Manish Bhardwaj Date: Sat, 15 Apr 2023 10:20:44 +0530 Subject: [PATCH] crypto: fix memory leak issue Using this patch we are fixing memory leak issue Bug 4064812 Signed-off-by: Manish Bhardwaj Change-Id: Ifd2e74e5d1b9b6cbd91a6ec65e45626066c9a1f5 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2888604 Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-cert Reviewed-by: Suresh Venkatachalam Reviewed-by: Sandeep Trasi GVS: Gerrit_Virtual_Submit --- drivers/crypto/tegra-nvvse-cryptodev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/crypto/tegra-nvvse-cryptodev.c b/drivers/crypto/tegra-nvvse-cryptodev.c index 5a1e656a..6c297bc9 100644 --- a/drivers/crypto/tegra-nvvse-cryptodev.c +++ b/drivers/crypto/tegra-nvvse-cryptodev.c @@ -2104,6 +2104,7 @@ static long tnvvse_crypto_dev_ioctl(struct file *filp, out: mutex_unlock(&ctx->lock); + kfree(tsec_keyload_status); return ret; }