drm: Fix framebuffer leak
authorNikhil Mahale <nmahale@nvidia.com>
Wed, 9 Aug 2017 03:53:01 +0000 (09:23 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 14 Aug 2017 13:30:33 +0000 (15:30 +0200)
commit491ab4700d1b64f5cf2f9055e01613a923df5fab
treef88ffa570a5f2bcc05c5557e08d250851514c889
parent0fa375e6bc9023211eead30a6a79963c45a563da
drm: Fix framebuffer leak

Do not leak framebuffer if client provided crtc id found invalid.

Signed-off-by: Nikhil Mahale <nmahale@nvidia.com>
Cc: stable@vger.kernel.org
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
drivers/gpu/drm/drm_plane.c