projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbfe8fa
)
drm/nouveau: hold mutex when calling nouveau_abi16_fini()
author
Kamil Dudka
<kdudka@redhat.com>
Wed, 15 Jul 2015 15:18:15 +0000
(17:18 +0200)
committer
Ben Skeggs
<bskeggs@redhat.com>
Mon, 27 Jul 2015 08:56:07 +0000
(18:56 +1000)
This was the only access to cli->abi16 without holding the mutex.
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
drivers/gpu/drm/nouveau/nouveau_drm.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/nouveau/nouveau_drm.c
b/drivers/gpu/drm/nouveau/nouveau_drm.c
index 649024d4daf1da6e5aa1e074e303ba02ec312de0..01c78a4a3efa343b2b7bf8678439edab7d9a789e 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nouveau_drm.c
+++ b/
drivers/gpu/drm/nouveau/nouveau_drm.c
@@
-865,8
+865,10
@@
nouveau_drm_preclose(struct drm_device *dev, struct drm_file *fpriv)
pm_runtime_get_sync(dev->dev);
+ mutex_lock(&cli->mutex);
if (cli->abi16)
nouveau_abi16_fini(cli->abi16);
+ mutex_unlock(&cli->mutex);
mutex_lock(&drm->client.mutex);
list_del(&cli->head);