]> Git Repo - linux.git/commit
dma-buf/sync_file: free fences array in num_fences is 1
authorGustavo Padovan <[email protected]>
Wed, 21 Sep 2016 07:20:19 +0000 (10:20 +0300)
committerSean Paul <[email protected]>
Thu, 22 Sep 2016 11:06:16 +0000 (04:06 -0700)
commitc654dd07522e88bacc546c9ccd81b3ee72838ccf
tree46dbb5210cabf230700cab1b458abff2fc8b8377
parent6a2925ea12006911c8180a89feda6d040873ed18
dma-buf/sync_file: free fences array in num_fences is 1

When merging sync_files there is a case when we can end up with only one
fence in the merged sync_file: when all fences belong to the same
timeline.

So for this case a fence_array is not created instead we just assigned the
fence to sync_file->fence. Then we do not use the fences array anymore nor
does free it.

This patch frees the array.

Reported-by: Chris Wilson <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Signed-off-by: Gustavo Padovan <[email protected]>
Signed-off-by: Sean Paul <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/dma-buf/sync_file.c
This page took 0.052963 seconds and 4 git commands to generate.