Thread (6 messages) flat view 6 messages, 3 authors, 2025-07-27

Re: [PATCH] fbdev: pm3fb: Fix potential divide by zero

From: Helge Deller <deller@gmx.de>
Date: 2025-06-08 13:12:18
Also in: dri-devel, lkml

On 6/7/25 21:49, Alex Guo wrote:
variable var->pixclock can be set by user. In case it equals to
  zero, divide by zero would occur in pm3fb_check_var. Similar
crashes have happened in other fbdev drivers. There is no check
and modification on var->pixclock along the call chain to
pm3fb_check_var. So we fix this by checking whether 'pixclock'
is zero.

Similar commit: commit 16844e58704 ("video: fbdev: tridentfb:
Error out if 'pixclock' equals zero")

Signed-off-by: Alex Guo <redacted>
---
  drivers/video/fbdev/pm3fb.c | 3 +++
  1 file changed, 3 insertions(+)
applied.

Thanks!
Helge
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help