dma-buf/sw_sync: put fence reference from the fence creation
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 26 Oct 2016 20:59:59 +0000 (18:59 -0200)
committerSumit Semwal <sumit.semwal@linaro.org>
Tue, 8 Nov 2016 18:27:40 +0000 (23:57 +0530)
commit4592bfcd177fe78cf9adc59f2dcddd1fa1f71079
treedebef86ea903de548c5a69f99e0d3c0d5e81718c
parent748815881f7824b489d63a8cd8a4e27ef14c303b
dma-buf/sw_sync: put fence reference from the fence creation

Once sw_sync_ioctl_create_fence() returns we no longer have the
*pt pointer to the fence base object thus we need to put the reference
we have from the fence creation to keep a correct reference accounting.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1477515599-7685-1-git-send-email-gustavo@padovan.org
drivers/dma-buf/sw_sync.c