FAILED: patch "[PATCH] drm: Fix framebuffer leak" failed to apply to 4.9-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 4.9-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
Quoted 1 line
From
491ab4700d1b64f5cf2f9055e01613a923df5fabMon Sep 17 00:00:00 2001
From: Nikhil Mahale <[email protected]>
Date: Wed, 9 Aug 2017 09:23:01 +0530
Subject: [PATCH] drm: Fix framebuffer leak
Do not leak framebuffer if client provided crtc id found invalid.
Signed-off-by Nikhil Mahale <[email protected]>
Signed-off-by Daniel Vetter <[email protected]>
drivers/gpu/drm/drm_plane.c +1 -0
@@ -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 ;