diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/fifo_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c index f7f39207..b2a6b1a0 100644 --- a/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/fifo_gk20a.c | |||
@@ -3489,8 +3489,8 @@ static void __gk20a_fifo_profile_free(struct kref *ref) | |||
3489 | { | 3489 | { |
3490 | struct fifo_gk20a *f = container_of(ref, struct fifo_gk20a, | 3490 | struct fifo_gk20a *f = container_of(ref, struct fifo_gk20a, |
3491 | profile.ref); | 3491 | profile.ref); |
3492 | vfree(f->profile.data); | 3492 | nvgpu_vfree(f->g, f->profile.data); |
3493 | vfree(f->profile.sorted); | 3493 | nvgpu_vfree(f->g, f->profile.sorted); |
3494 | } | 3494 | } |
3495 | 3495 | ||
3496 | static int gk20a_fifo_profile_enable(void *data, u64 val) | 3496 | static int gk20a_fifo_profile_enable(void *data, u64 val) |
@@ -3518,8 +3518,8 @@ static int gk20a_fifo_profile_enable(void *data, u64 val) | |||
3518 | FIFO_PROFILING_ENTRIES * | 3518 | FIFO_PROFILING_ENTRIES * |
3519 | sizeof(u64)); | 3519 | sizeof(u64)); |
3520 | if (!(f->profile.data && f->profile.sorted)) { | 3520 | if (!(f->profile.data && f->profile.sorted)) { |
3521 | vfree(f->profile.data); | 3521 | nvgpu_vfree(g, f->profile.data); |
3522 | vfree(f->profile.sorted); | 3522 | nvgpu_vfree(g, f->profile.sorted); |
3523 | nvgpu_mutex_release(&f->profile.lock); | 3523 | nvgpu_mutex_release(&f->profile.lock); |
3524 | return -ENOMEM; | 3524 | return -ENOMEM; |
3525 | } | 3525 | } |