Wei Chen 92e2a00f29 fbdev: nvidia: Fix potential divide by zero
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>
2023-03-16 16:18:16 +01:00
..
2023-01-09 09:57:50 +01:00
2022-12-14 20:01:51 +01:00
2023-01-09 09:57:51 +01:00
2022-11-24 11:05:43 +10:00
2020-01-15 17:31:50 +01:00
2022-11-24 11:05:43 +10:00
2020-02-19 10:58:22 -08:00
2023-02-22 18:28:03 -08:00
2023-02-20 15:28:57 -08:00
2023-02-01 17:23:38 +01:00
2023-01-09 09:57:50 +01:00
2020-01-30 08:04:01 -08:00
2020-01-30 08:04:01 -08:00
2020-01-30 08:04:01 -08:00
2022-03-24 16:19:43 -07:00
2020-01-30 08:04:01 -08:00
2023-01-12 17:02:20 -06:00