]> git.baikalelectronics.ru Git - kernel.git/commit
dma-buf: fix reservation_object_wait_timeout_rcu once more v2
authorChristian König <ckoenig.leichtzumerken@gmail.com>
Mon, 22 Jan 2018 20:00:03 +0000 (21:00 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 23 Jan 2018 15:46:39 +0000 (10:46 -0500)
commit2fe1d2cacc9c36533f15a956ce9673624c0e5c83
treea1f67f409659ef5dc2057553614ef7d944e6013f
parent95204fbc6b66a9fb4d90bb5caf6a85ccb6a48997
dma-buf: fix reservation_object_wait_timeout_rcu once more v2

We need to set shared_count even if we already have a fence to wait for.

v2: init i to -1 as well

Signed-off-by: Christian König <christian.koenig@amd.com>
Cc: stable@vger.kernel.org
Tested-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180122200003.6665-1-christian.koenig@amd.com
drivers/dma-buf/reservation.c