mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
gpu: nvgpu: use nvgpu_free for gpfifo pipe cleanup on error
Replace kfree with nvgpu_free in error handling path in gk20a_alloc_channel_gpfifo where the gpfifo pipe buffer is being allocated, because it's allocated with nvgpu_alloc. Jira DNVGPU-21 Change-Id: I73100394b67da2ab064e4e9df6b430d818abce56 Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/1182401 GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
This commit is contained in:
committed by
Vijayakumar Subbu
parent
b14b2e3400
commit
55b298d05a
@@ -1511,7 +1511,7 @@ int gk20a_alloc_channel_gpfifo(struct channel_gk20a *c,
|
||||
return 0;
|
||||
|
||||
clean_up_unmap:
|
||||
kfree(c->gpfifo.pipe);
|
||||
nvgpu_free(c->gpfifo.pipe);
|
||||
gk20a_gmmu_unmap_free(ch_vm, &c->gpfifo.mem);
|
||||
clean_up:
|
||||
memset(&c->gpfifo, 0, sizeof(struct gpfifo_desc));
|
||||
|
||||
Reference in New Issue
Block a user