From 86fbda4e99d4f7ea2a1eab1bbb587beeda191792 Mon Sep 17 00:00:00 2001 From: Anup Mahindre Date: Fri, 10 Jul 2020 14:31:17 +0530 Subject: [PATCH] video: tegra: host: nvdla: Use vfree for v*alloced memory A previous change shifted from k*alloc to v*alloc as physically contiguos memory was not really required. A kfree was left out in error paths. Fix this problem by using vfree instead. Bug 200621525 Change-Id: I1074d84a2366cc52d172b5817de2d7df60a23028 Signed-off-by: Anup Mahindre Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2373692 Reviewed-by: automaticguardword Reviewed-by: Ken Adams Reviewed-by: Bharat Nihalani Reviewed-by: mobile promotions GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions --- drivers/video/tegra/host/nvdla/dla_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/tegra/host/nvdla/dla_queue.c b/drivers/video/tegra/host/nvdla/dla_queue.c index 6f302b47..7616878d 100644 --- a/drivers/video/tegra/host/nvdla/dla_queue.c +++ b/drivers/video/tegra/host/nvdla/dla_queue.c @@ -99,7 +99,7 @@ static int nvdla_queue_task_pool_alloc(struct platform_device *pdev, return err; err_alloc_task_pool: - kfree(task_pool->kmem_addr); + vfree(task_pool->kmem_addr); err_alloc_task_kmem: return err; }