OSDN Git Service

drm/nouveau/fbcon: fix oops without fbdev emulation
authorPavel Roskin <plroskin@gmail.com>
Sat, 23 Sep 2017 20:10:33 +0000 (13:10 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 10 Nov 2018 15:41:37 +0000 (07:41 -0800)
commit4a3948cb6da454f21f89a34e694cea322ea559f9
treeaba45d255742cc6c6c5aced936119bb1397c2fd9
parente25dc63aa366fd0f61d1d9ba67b66f5d75fc4372
drm/nouveau/fbcon: fix oops without fbdev emulation

[ Upstream commit 4813766325374af6ed0b66879ba6a0bbb05c83b6 ]

This is similar to an earlier commit 52dfcc5ccfbb ("drm/nouveau: fix for
disabled fbdev emulation"), but protects all occurrences of helper.fbdev
in the source.

I see oops in nouveau_fbcon_accel_save_disable() called from
nouveau_fbcon_set_suspend_work() on Linux 3.13 when
CONFIG_DRM_FBDEV_EMULATION option is disabled.

Signed-off-by: Pavel Roskin <plroskin@gmail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/nouveau/nouveau_fbcon.c