summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/semaphore.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/semaphore.c')
-rw-r--r--drivers/gpu/nvgpu/common/semaphore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/semaphore.c b/drivers/gpu/nvgpu/common/semaphore.c
index 675794d1..5d526e64 100644
--- a/drivers/gpu/nvgpu/common/semaphore.c
+++ b/drivers/gpu/nvgpu/common/semaphore.c
@@ -74,7 +74,7 @@ void gk20a_semaphore_sea_destroy(struct gk20a *g)
74 return; 74 return;
75 75
76 nvgpu_mutex_destroy(&g->sema_sea->sea_lock); 76 nvgpu_mutex_destroy(&g->sema_sea->sea_lock);
77 kfree(g->sema_sea); 77 nvgpu_kfree(g, g->sema_sea);
78 g->sema_sea = NULL; 78 g->sema_sea = NULL;
79} 79}
80 80