mirror of
https://github.com/torvalds/linux.git
synced 2025-11-01 17:18:25 +02: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.c | ||
| drm_sysfb_helper.h | ||
| drm_sysfb_modeset.c | ||
| drm_sysfb_screen_info.c | ||
| efidrm.c | ||
| Kconfig | ||
| Makefile | ||
| ofdrm.c | ||
| simpledrm.c | ||
| vesadrm.c | ||