Skip to content
Snippets Groups Projects
Commit c4aa9f31 authored by Christian König's avatar Christian König Committed by T.J. Mercier
Browse files

UPSTREAM: dma-buf/sync_file: cleanup fence merging a bit


krealloc_array() ignores attempts to reduce the array size, so the attempt
to save memory is completely pointless here.

Also move testing for the no fence case into sync_file_set_fence(), this
way we don't even touch the fence array when we don't have any fences.

Change-Id: Ibecc33d218935c246c4bb64509a1fadece47b16d
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20220426124637.329764-1-christian.koenig@amd.com


(cherry picked from commit f778f405)
Bug: 394776841
Bug: 397845301
Signed-off-by: default avatarT.J. Mercier <tjmercier@google.com>
parent 35abfc0a
No related merge requests found
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