projects
/
wrapfs-4.12.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
865d89f
)
drm: Fix framebuffer leak
author
Nikhil Mahale
<nmahale@nvidia.com>
Wed, 9 Aug 2017 03:53:01 +0000
(09:23 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 30 Aug 2017 08:26:35 +0000
(10:26 +0200)
commit
491ab4700d1b64f5cf2f9055e01613a923df5fab
upstream.
Do not leak framebuffer if client provided crtc id found invalid.
Signed-off-by: Nikhil Mahale <nmahale@nvidia.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link:
https://patchwork.freedesktop.org/patch/msgid/1502250781-5779-1-git-send-email-nmahale@nvidia.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/drm_plane.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_plane.c
b/drivers/gpu/drm/drm_plane.c
index 5dc8c4350602a561fe4cfd77fce77e26770696fb..e40c12fabbdeaf9a325811d25e17c30990637e12 100644
(file)
--- a/
drivers/gpu/drm/drm_plane.c
+++ b/
drivers/gpu/drm/drm_plane.c
@@
-601,6
+601,7
@@
int drm_mode_setplane(struct drm_device *dev, void *data,
crtc = drm_crtc_find(dev, plane_req->crtc_id);
if (!crtc) {
+ drm_framebuffer_put(fb);
DRM_DEBUG_KMS("Unknown crtc ID %d\n",
plane_req->crtc_id);
return -ENOENT;