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 <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/747150
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arto Merilainen <amerilainen@nvidia.com>
This commit is contained in:
Deepak Nibade
2015-05-21 17:31:41 +05:30
committed by Arto Merilainen
parent 4531a27adc
commit 2ea47dec76

View File

@@ -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);
}