summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index f71a51fd..e8db9d2c 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -518,7 +518,8 @@ static void gk20a_free_cb(struct nvgpu_ref *refcount)
518 if (g->remove_support) 518 if (g->remove_support)
519 g->remove_support(g); 519 g->remove_support(g);
520 520
521 kfree(g); 521 if (g->free)
522 g->free(g);
522} 523}
523 524
524/** 525/**