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 <amahindre@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2373692
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Ken Adams <kadams@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Anup Mahindre
2020-07-10 14:31:17 +05:30
committed by Laxman Dewangan
parent b57a9dee10
commit 86fbda4e99

View File

@@ -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;
}