drm: Undo damage to page_flip_ioctl
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 3 Oct 2016 08:28:27 +0000 (10:28 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 4 Oct 2016 02:53:12 +0000 (12:53 +1000)
commit2adb29b18ea7dc9503a397eb9995a5f3e6754b9e
treec6d5dbe6d2ee16a79df30dc0a2627a057810ca4f
parente86fa21b77f4ef840213ecd33230c7c16879a4ac
drm: Undo damage to page_flip_ioctl

I screwed up rebasing of my patch in

commit 43968d7b806d7a7e021261294c583a216fddf0e5
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Wed Sep 21 10:59:24 2016 +0200

    drm: Extract drm_plane.[hc]

which meant on error paths drm_crtc_vblank_put could be called without
a get, leading to an underrun of the refcount.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98020
Reported-and-tested-by: Andy Furniss <adf.lists@gmail.com>
Cc: Sean Paul <seanpaul@chromium.org>
Cc: Michel Dänzer <michel@daenzer.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161003082827.11586-1-daniel.vetter@ffwll.ch
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_plane.c