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:
35f62a5
)
drm/ttm: Fix locking in an error path
author
Thomas Hellstrom
<thellstrom@vmware.com>
Tue, 20 Nov 2012 12:16:50 +0000
(12:16 +0000)
committer
Dave Airlie
<airlied@redhat.com>
Wed, 28 Nov 2012 08:36:14 +0000
(18:36 +1000)
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/ttm/ttm_object.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/ttm/ttm_object.c
b/drivers/gpu/drm/ttm/ttm_object.c
index f18eeb458139baee015721e8889adfc2959dd219..0e13d9f059ffde25adb61dea3ca52cee8f38e92e 100644
(file)
--- a/
drivers/gpu/drm/ttm/ttm_object.c
+++ b/
drivers/gpu/drm/ttm/ttm_object.c
@@
-174,7
+174,9
@@
int ttm_base_object_init(struct ttm_object_file *tfile,
return 0;
out_err1:
+ spin_lock(&tdev->object_lock);
(void)drm_ht_remove_item(&tdev->object_hash, &base->hash);
+ spin_unlock(&tdev->object_lock);
out_err0:
return ret;
}