Skip to content
Commit d27326a9 authored by Dan Carpenter's avatar Dan Carpenter Committed by Christian König
Browse files

dma-buf/sw_sync: Decrement refcount on error in sw_sync_ioctl_get_deadline()



Call dma_fence_put(fence) before returning an error if
dma_fence_to_sync_pt() fails.  Use an unwind ladder at the
end of the function to do the cleanup.

Fixes: 70e67aae ("dma-buf/sw_sync: Add fence deadline support")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/a010a1ac-107b-4fc0-a052-9fd3706ad690@stanley.mountain


Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
parent 31660b40
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment