WSL2-Linux-Kernel/drivers/video/fbdev
Cai Xinchen 4b2c67e30b fbdev: savage: Handle err return when savagefb_check_var failed
commit 6ad959b6703e2c4c5d7af03b4cfd5ff608036339 upstream.

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: Cai Xinchen <caixinchen1@huawei.com>
Cc: stable@vger.kernel.org
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-06-16 13:39:57 +02:00
..
aty fbdev: atyfb: only use ioremap_uc() on i386 and ia64 2023-11-08 17:26:45 +01:00
core fbdev: fix incorrect address computation in deferred IO 2024-05-02 16:24:50 +02:00
geode fbdev: lxfb: Fix potential divide by zero 2023-04-05 11:24:53 +02:00
i810
intelfb fbdev: intelfb: Fix potential divide by zero 2023-04-05 11:24:53 +02:00
kyro video: fbdev: kyro: Error out if 'pixclock' equals zero 2021-07-26 20:06:00 +02:00
matrox fbdev: matroxfb: G200eW: Increase max memory from 1 MB to 16 MB 2023-01-12 11:59:17 +01:00
mb862xx
mmp fbdev: mmp: fix value check in mmphw_probe() 2023-08-26 14:23:31 +02:00
nvidia fbdev: nvidia: Fix potential divide by zero 2023-04-05 11:24:53 +02:00
omap fbdev: omapfb: lcd_mipid: Fix an error handling path in mipid_spi_probe() 2023-07-23 13:47:05 +02:00
omap2 fbdev: omapfb: avoid stack overflow warning 2023-01-24 07:22:42 +01:00
riva video: fbdev: riva: Error out if 'pixclock' equals zero 2021-07-26 20:06:03 +02:00
savage fbdev: savage: Handle err return when savagefb_check_var failed 2024-06-16 13:39:57 +02:00
sis fbdev: sisfb: hide unused variables 2024-06-16 13:39:28 +02:00
vermilion fbdev: vermilion: decrease reference count in error path 2022-12-31 13:14:32 +01:00
via fbdev: viafb: fix typo in hw_bitblt_1 and hw_bitblt_2 2024-04-13 13:01:46 +02:00
68328fb.c
Kconfig fbdev: sh7760fb: allow modular build 2024-06-16 13:39:29 +02:00
Makefile
acornfb.c
acornfb.h
amba-clcd.c video: fbdev: amba-clcd: Fix refcount leak bugs 2022-08-17 14:24:11 +02:00
amifb.c
arcfb.c fbdev: arcfb: Fix error handling in arcfb_probe() 2023-05-24 17:36:42 +01:00
arkfb.c video: fbdev: arkfb: Check the size of screen before memset_io() 2022-08-17 14:24:16 +02:00
asiliantfb.c video: fbdev: asiliantfb: Error out if 'pixclock' equals zero 2021-07-26 20:05:50 +02:00
atafb.c video: fbdev: atari: Atari 2 bpp (STe) palette bugfix 2022-04-08 14:23:00 +02:00
atafb.h
atafb_iplan2p2.c
atafb_iplan2p4.c
atafb_iplan2p8.c
atafb_mfb.c
atafb_utils.h
atmel_lcdfb.c video: fbdev: atmel_lcdfb: fix an error code in atmel_lcdfb_probe() 2022-04-08 14:23:14 +02:00
au1100fb.c
au1100fb.h
au1200fb.c fbdev: au1200fb: Fix missing IRQ check in au1200fb_drv_probe 2023-07-27 08:47:02 +02:00
au1200fb.h
broadsheetfb.c fbdev: Rename pagelist to pagereflist for deferred I/O 2024-02-23 08:55:13 +01:00
bt431.h
bt455.h
bw2.c
c2p.h
c2p_core.h
c2p_iplan2.c
c2p_planar.c
carminefb.c
carminefb.h
carminefb_regs.h
cg3.c
cg6.c
cg14.c
chipsfb.c fbdev: chipsfb: Add missing pci_disable_device() in chipsfb_pci_init() 2022-09-15 11:30:01 +02:00
cirrusfb.c video: fbdev: cirrusfb: check pixclock to avoid divide by zero 2022-04-08 14:24:00 +02:00
clps711x-fb.c
cobalt_lcdfb.c
controlfb.c video: fbdev: controlfb: Fix COMPILE_TEST build 2022-04-08 14:23:14 +02:00
controlfb.h
cyber2000fb.c
cyber2000fb.h
da8xx-fb.c
dnfb.c
edid.h
efifb.c fbdev: efifb: Fix a use-after-free due early fb_info cleanup 2022-05-18 10:26:49 +02:00
ep93xx-fb.c fbdev/ep93xx-fb: Do not assign to struct fb_info.dev 2023-09-19 12:22:55 +02:00
ffb.c
fm2fb.c
fsl-diu-fb.c fbdev: fsl-diu-fb: mark wr_reg_wa() static 2023-11-20 11:08:30 +01:00
g364fb.c
gbefb.c video: fbdev: gbefb: Only instantiate device when built for IP32 2021-10-06 11:12:28 +02:00
goldfishfb.c
grvga.c
gxt4500.c
hecubafb.c fbdev: Rename pagelist to pagereflist for deferred I/O 2024-02-23 08:55:13 +01:00
hgafb.c
hitfb.c
hpfb.c
hyperv_fb.c fbdev: Rename pagelist to pagereflist for deferred I/O 2024-02-23 08:55:13 +01:00
i740_reg.h
i740fb.c video: fbdev: i740fb: Error out if 'pixclock' equals zero 2022-09-23 14:15:49 +02:00
imsttfb.c fbdev: imsttfb: fix a resource leak in probe 2023-11-20 11:08:30 +01:00
imxfb.c fbdev: imxfb: warn about invalid left/right margin 2023-07-27 08:46:58 +02:00
leo.c
macfb.c
macmodes.c
macmodes.h
maxinefb.c
metronomefb.c fbdev: Rename pagelist to pagereflist for deferred I/O 2024-02-23 08:55:13 +01:00
mx3fb.c
n411.c
neofb.c video: fbdev: neofb: add a check against divide error 2021-07-21 15:02:03 +02:00
ocfb.c
offb.c
p9100.c
platinumfb.c
platinumfb.h
pm2fb.c fbdev: pm2fb: fix missing pci_disable_device() 2022-12-31 13:14:31 +01:00
pm3fb.c
pmag-aa-fb.c
pmag-ba-fb.c
pmagb-b-fb.c
ps3fb.c
pvr2fb.c
pxa3xx-gcu.c video: fbdev: pxa3xx-gcu: Fix integer overflow in pxa3xx_gcu_write 2022-09-23 14:15:51 +02:00
pxa3xx-gcu.h
pxa168fb.c
pxa168fb.h
pxafb.c
pxafb.h
q40fb.c
s1d13xxxfb.c
s3c-fb.c
s3c2410fb-regs-lcd.h
s3c2410fb.c
s3c2410fb.h
s3fb.c video: fbdev: s3fb: Check the size of screen before memset_io() 2022-08-17 14:24:16 +02:00
sa1100fb.c
sa1100fb.h
sbuslib.c
sbuslib.h
sh7760fb.c
sh_mobile_lcdcfb.c fbdev: shmobile: fix snprintf truncation 2024-06-16 13:39:27 +02:00
sh_mobile_lcdcfb.h
simplefb.c fbdev: simplefb: Cleanup fb_info in .fb_destroy rather than .remove 2022-05-18 10:26:48 +02:00
skeletonfb.c
sm501fb.c
sm712.h
sm712fb.c video: fbdev: sm712fb: Fix crash in smtcfb_write() 2022-04-08 14:24:02 +02:00
smscufx.c fbdev: Rename pagelist to pagereflist for deferred I/O 2024-02-23 08:55:13 +01:00
ssd1307fb.c fbdev: Rename pagelist to pagereflist for deferred I/O 2024-02-23 08:55:13 +01:00
sstfb.c
sticore.h fbdev: stifb: Make the STI next font pointer a 32-bit signed offset 2023-12-08 08:48:04 +01:00
stifb.c fbdev: stifb: Fix info entry in sti_struct on error path 2023-06-09 10:32:21 +02:00
sunxvr500.c
sunxvr1000.c
sunxvr2500.c
tcx.c
tdfxfb.c
tgafb.c fbdev: tgafb: Fix potential divide by zero 2023-04-05 11:24:53 +02:00
tmiofb.c
tridentfb.c
udlfb.c fbdev: Rename pagelist to pagereflist for deferred I/O 2024-02-23 08:55:13 +01:00
uvesafb.c fbdev: uvesafb: Call cn_del_callback() at the end of uvesafb_exit() 2023-11-08 17:26:47 +01:00
valkyriefb.c
valkyriefb.h
vesafb.c video: fbdev: vesafb: Fix a use-after-free due early fb_info cleanup 2022-06-09 10:23:16 +02:00
vfb.c
vga16fb.c video: vga16fb: Only probe for EGA and VGA 16 color graphic cards 2022-01-20 09:13:14 +01:00
vt8500lcdfb.c
vt8500lcdfb.h
vt8623fb.c video: fbdev: vt8623fb: Check the size of screen before memset_io() 2022-08-17 14:24:16 +02:00
w100fb.c video: fbdev: w100fb: Reset global state 2022-04-08 14:23:59 +02:00
w100fb.h
wm8505fb.c
wm8505fb_regs.h
wmt_ge_rops.c
wmt_ge_rops.h
xen-fbfront.c fbdev: Rename pagelist to pagereflist for deferred I/O 2024-02-23 08:55:13 +01:00
xilinxfb.c video: fbdev: Fix fall-through warning for Clang 2021-07-13 13:58:29 -05:00