From 2ea47dec763b818852066db53fbf08f5146e6e9a Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Thu, 21 May 2015 17:31:41 +0530 Subject: gpu: nvgpu: drop syncpoint refcount instead of direct free Drop host1x syncpoint refcount with nvhost_syncpt_put_ref_ext() instead of freeing it directly Bug 1646883 Change-Id: Ib213e58031a9302e683f8d13ebb4e1f913206464 Signed-off-by: Deepak Nibade Reviewed-on: http://git-master/r/747150 GVS: Gerrit_Virtual_Submit Reviewed-by: Arto Merilainen --- drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c index a488178f..b5bd6bf7 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c @@ -283,7 +283,7 @@ static void gk20a_channel_syncpt_destroy(struct gk20a_channel_sync *s) struct gk20a_channel_syncpt *sp = container_of(s, struct gk20a_channel_syncpt, ops); nvhost_syncpt_set_min_eq_max_ext(sp->host1x_pdev, sp->id); - nvhost_free_syncpt(sp->id); + nvhost_syncpt_put_ref_ext(sp->id); kfree(sp); } -- cgit v1.2.2