OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb7d70e
)
drm/gma500: Use correct unref in the gem bo create function
author
Daniel Vetter
<daniel.vetter@ffwll.ch>
Mon, 23 Nov 2015 09:32:49 +0000
(10:32 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 3 Mar 2016 23:07:08 +0000
(15:07 -0800)
commit
d3e376f52d095103ca51dbda4d6ff8aaf488f98f
upstream.
This is called without dev->struct_mutex held, we need to use the
_unlocked variant.
Never caught in the wild since you'd need an evil userspace which
races a gem_close ioctl call with the in-progress open.
Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Acked-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link:
http://patchwork.freedesktop.org/patch/msgid/1448271183-20523-17-git-send-email-daniel.vetter@ffwll.ch
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/gma500/gem.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/gma500/gem.c
b/drivers/gpu/drm/gma500/gem.c
index
c707fa6
..
e3bdc8b
100644
(file)
--- a/
drivers/gpu/drm/gma500/gem.c
+++ b/
drivers/gpu/drm/gma500/gem.c
@@
-130,7
+130,7
@@
int psb_gem_create(struct drm_file *file, struct drm_device *dev, u64 size,
return ret;
}
/* We have the initial and handle reference but need only one now */
- drm_gem_object_unreference(&r->gem);
+ drm_gem_object_unreference
_unlocked
(&r->gem);
*handlep = handle;
return 0;
}