mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 21:12:43 +00:00
The commit 04e5eac8f3ab("fbdev: savage: Error out if pixclock equals zero")
checks the value of pixclock to avoid divide-by-zero error. However
the function savagefb_probe doesn't handle the error return of
savagefb_check_var. When pixclock is 0, it will cause divide-by-zero error.
Fixes: 04e5eac8f3 ("fbdev: savage: Error out if pixclock equals zero")
Signed-off-by: Cai Xinchen <[email protected]>
Cc: [email protected]
Signed-off-by: Helge Deller <[email protected]>