Commit 6ad959b
fbdev: savage: Handle err return when savagefb_check_var failed
The commit 04e5eac("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: 04e5eac ("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]>1 parent 5317797 commit 6ad959b
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2276 | 2276 | | |
2277 | 2277 | | |
2278 | 2278 | | |
2279 | | - | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
2280 | 2283 | | |
2281 | 2284 | | |
2282 | 2285 | | |
| |||
0 commit comments