android_kernel_xiaomi_sm8350/drivers/video/fbdev/geode
Wei Chen deef33c081 fbdev: lxfb: Fix potential divide by zero
[ Upstream commit 61ac4b86a4c047c20d5cb423ddd87496f14d9868 ]

var->pixclock can be assigned to zero by user. Without proper
check, divide by zero would occur in lx_set_clock.

Error out if var->pixclock is zero.

Signed-off-by: Wei Chen <harperchen1110@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-04-05 11:16:43 +02:00
..
display_gx1.c
display_gx1.h
display_gx.c
geodefb.h
gx1fb_core.c
gxfb_core.c
gxfb.h
Kconfig
lxfb_core.c
lxfb_ops.c
lxfb.h
Makefile
suspend_gx.c
video_cs5530.c
video_cs5530.h
video_gx.c