mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
![]() Only set PMI fields if the screen_info's Vesa PM segment has been
set. Vesa PMI is the power-management interface. It also provides
means to set the color palette. The interface is optional, so not
all VESA graphics cards support it. Print vesafb's warning [1] if
the hardware palette cannot be set at all.
If unsupported the field PrimaryPalette in struct vesadrm.pmi is
NULL, which results in a segmentation fault. Happens with qemu's
Cirrus emulation.
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Fixes:
|
||
---|---|---|
.. | ||
drm_sysfb_helper.h | ||
drm_sysfb_modeset.c | ||
drm_sysfb_screen_info.c | ||
drm_sysfb.c | ||
efidrm.c | ||
Kconfig | ||
Makefile | ||
ofdrm.c | ||
simpledrm.c | ||
vesadrm.c |