aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2017-12-27 09:58:57 +1000
committerDave Airlie <airlied@redhat.com>2017-12-27 09:58:57 +1000
commite100ff380ce936fc1e7ae8ba16621ddf5dddffcb (patch)
tree919fe4d6e28e92f4529a03b95c28b8dc6784c73a /drivers
parentLinux 4.15-rc5 (diff)
parentdrm/nouveau: fix race when adding delayed work items (diff)
downloadlinux-dev-e100ff380ce936fc1e7ae8ba16621ddf5dddffcb.tar.xz
linux-dev-e100ff380ce936fc1e7ae8ba16621ddf5dddffcb.zip
Merge branch 'linux-4.15' of git://github.com/skeggsb/linux into drm-fixes
one nouveau regression fix * 'linux-4.15' of git://github.com/skeggsb/linux: drm/nouveau: fix race when adding delayed work items
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouveau/nouveau_drm.c
index 8d4a5be3b913..56fe261b6268 100644
--- a/drivers/gpu/drm/nouveau/nouveau_drm.c
+++ b/drivers/gpu/drm/nouveau/nouveau_drm.c
@@ -152,9 +152,9 @@ nouveau_cli_work_queue(struct nouveau_cli *cli, struct dma_fence *fence,
work->cli = cli;
mutex_lock(&cli->lock);
list_add_tail(&work->head, &cli->worker);
- mutex_unlock(&cli->lock);
if (dma_fence_add_callback(fence, &work->cb, nouveau_cli_work_fence))
nouveau_cli_work_fence(fence, &work->cb);
+ mutex_unlock(&cli->lock);
}
static void