]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm: Reject page_flip for !DRIVER_MODESET
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 20 Aug 2016 10:22:11 +0000 (12:22 +0200)
committerJiri Slaby <jslaby@suse.cz>
Thu, 29 Sep 2016 09:14:12 +0000 (11:14 +0200)
commit623c18b3f2540cef9111ad3465f4bda98bb91eec
treef338ce8db835993fad30e6bf7421f9e6d90ed998
parentbbca3af46c6a529be17d8ceb5cfdc2a600810a45
drm: Reject page_flip for !DRIVER_MODESET

commit 6f00975c619064a18c23fd3aced325ae165a73b9 upstream.

Somehow this one slipped through, which means drivers without modeset
support can be oopsed (since those also don't call
drm_mode_config_init, which means the crtc lookup will chase an
uninitalized idr).

Reported-by: Alexander Potapenko <glider@google.com>
Cc: Alexander Potapenko <glider@google.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/gpu/drm/drm_crtc.c