Skip to content
Snippets Groups Projects
Commit e3e73f3b authored by Cai Xinchen's avatar Cai Xinchen Committed by Frieder Schrempf
Browse files

fbdev: savage: Handle err return when savagefb_check_var failed


commit 6ad959b6 upstream.

The commit 04e5eac8("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: 04e5eac8 ("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 avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a5281dc5
No related branches found
No related tags found
1 merge request!157🤖 Sync Bot: Update v6.1-ktn to Latest Stable Kernel (v6.1.97)
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