]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 23 Feb 2018 14:26:38 +0000 (08:26 -0600)
commit1696b7230454b7a676ffa4950f026389db4e45af
tree141173f49970677262af52a70328466c12fffa01
parent23342192cc20e464a65d50b5118cee1fbbebc284
dma-buf: fix reservation_object_wait_timeout_rcu once more v2

BugLink: http://bugs.launchpad.net/bugs/1751131
commit 5bffee867df7494ecd32c1e6ec4e8fc934c521b7 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/dma-buf/reservation.c