android_kernel_xiaomi_sm8350/drivers/video/fbdev/nvidia
Wei Chen 868f247e47 fbdev: nvidia: Fix potential divide by zero
[ Upstream commit 92e2a00f2987483e1f9253625828622edd442e61 ]

variable var->pixclock can be set by user. In case it
equals to zero, divide by zero would occur in nvidiafb_set_par.

Similar crashes have happened in other fbdev drivers. There
is no check and modification on var->pixclock along the call
chain to nvidia_check_var and nvidiafb_set_par. We believe it
could also be triggered in driver nvidia from user site.

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:42 +02:00
..
Makefile
nv_accel.c
nv_backlight.c
nv_dma.h
nv_hw.c
nv_i2c.c
nv_local.h
nv_of.c
nv_proto.h
nv_setup.c
nv_type.h
nvidia.c