linux_dsm_epyc7002/drivers/video
Martin Kaiser dc312120b7 video: fbdev: imxfb: always allocate 256 entries for the color map
The current code calculates the number of color map entries as
1 << info->var.bits_per_pixel. For 32bpp modes, 1 << 32 is 0 when
written to an int variable. As a consequence, the subsequent copying
of the default (non-empty) color map into our newly allocated color map
fails and imxfb's probe function returns an error.

On both imx1 and imx21 platforms, the color map is used only for modes
with <= 8bpp. By allocating 256 entries for the color map, we're on the
safe side.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
2017-01-11 17:09:50 +01:00
..
backlight backlight: pwm_bl: Handle gpio that can sleep 2016-10-06 09:27:26 +01:00
console Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
fbdev video: fbdev: imxfb: always allocate 256 entries for the color map 2017-01-11 17:09:50 +01:00
logo
display_timing.c
hdmi.c video: Add new aspect ratios for HDMI 2.0 2016-10-17 14:23:46 +02:00
Kconfig
Makefile
of_display_timing.c Merge branch 'drm/next/du' of git://linuxtv.org/pinchartl/media into drm-next 2016-11-16 09:39:21 +10:00
of_videomode.c
vgastate.c
videomode.c