Skip to content
Commit 2d3537f3 authored by Cai Xinchen's avatar Cai Xinchen Committed by heyujie
Browse files

fbdev: savage: Handle err return when savagefb_check_var failed

mainline inclusion
from mainline-v6.10-rc1
commit 6ad959b6703e2c4c5d7af03b4cfd5ff608036339
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/IAB0KC
CVE: CVE-2024-39475

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6ad959b6703e2c4c5d7af03b4cfd5ff608036339



--------------------------------

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: 04e5eac8f3ab ("fbdev: savage: Error out if pixclock equals zero")
Signed-off-by: default avatarCai Xinchen <caixinchen1@huawei.com>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
Signed-off-by: default avatarHe Yujie <coka.heyujie@huawei.com>
parent 7e844045
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment