]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/fb-helper: Fix the dummy remove_conflicting_framebuffers
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 22 Aug 2016 20:44:52 +0000 (21:44 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 23 Aug 2016 07:29:59 +0000 (09:29 +0200)
commit0a3bfe29f81622f50fbd9a64ec7c705845516681
tree93b0a76d41b1a56f91c4d707ecdc17d17588364d
parentd1c151dcae628bf73b4aa2c2c5abeccf3d17e544
drm/fb-helper: Fix the dummy remove_conflicting_framebuffers

We always need to remove conflicting framebuffers if any other fb driver
is enabled, and not just if we are setting up an fbdev ourselves.

Unfortunately remove_conflicting_framebuffers() was incorrectly stubbed
out if !fbdev rather than !fb leading to major memory corruption (and
corrupt filesystems) upon boot.

Fixes: 44adece57e26 ("drm/fb-helper: Add a dummy remove_conflicting_framebuffers")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Cc: Noralf Trønnes <noralf@tronnes.org>
Cc: tomi.valkeinen@ti.com
Cc: dh.herrmann@gmail.com
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20160822204452.2509-1-chris@chris-wilson.co.uk
include/drm/drm_fb_helper.h