mirror-linux/drivers/video/fbdev/core
Andrey Vatoropin 011a050280 fbcon: check return value of con2fb_acquire_newinfo()
If fbcon_open() fails when called from con2fb_acquire_newinfo() then
info->fbcon_par pointer remains NULL which is later dereferenced.

Add check for return value of the function con2fb_acquire_newinfo() to
avoid it.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: d1baa4ffa6 ("fbcon: set_con2fb_map fixes")
Cc: stable@vger.kernel.org
Signed-off-by: Andrey Vatoropin <a.vatoropin@crpt.ru>
Signed-off-by: Helge Deller <deller@gmx.de>
2026-02-14 11:07:12 +01:00
..
Kconfig fbdev: Turn FB_MODE_HELPERS into an internal config option 2025-09-23 15:56:04 +02:00
Makefile
bitblit.c Linux 6.18-rc6 2025-11-21 08:55:08 +10:00
cfbcopyarea.c
cfbfillrect.c
cfbimgblt.c
cfbmem.h
fb_backlight.c
fb_chrdev.c
fb_cmdline.c fbdev: Fix logic error in "offb" name match 2025-10-10 00:31:13 +02:00
fb_copyarea.h
fb_ddc.c
fb_defio.c
fb_draw.h
fb_fillrect.h fbdev: core: Fix ubsan warning in pixel_to_pat 2025-09-30 23:21:34 +02:00
fb_imageblit.h
fb_info.c
fb_internal.h
fb_io_fops.c
fb_logo.c
fb_notify.c
fb_procfs.c
fb_sys_fops.c
fbcmap.c
fbcon.c fbcon: check return value of con2fb_acquire_newinfo() 2026-02-14 11:07:12 +01:00
fbcon.h fbcon: Remove fb_debug_enter/_leave from struct fb_ops 2025-12-02 09:20:44 +01:00
fbcon_ccw.c fbcon: Streamline setting rotated/unrotated bitops 2025-09-19 10:04:06 +02:00
fbcon_cw.c fbcon: Streamline setting rotated/unrotated bitops 2025-09-19 10:04:06 +02:00
fbcon_rotate.c fbcon: Streamline setting rotated/unrotated bitops 2025-09-19 10:04:06 +02:00
fbcon_rotate.h fbcon: Streamline setting rotated/unrotated bitops 2025-09-19 10:04:06 +02:00
fbcon_ud.c fbcon: Streamline setting rotated/unrotated bitops 2025-09-19 10:04:06 +02:00
fbcvt.c
fbmem.c fbcon: Set fb_display[i]->mode to NULL when the mode is released 2025-10-28 22:59:19 +01:00
fbmon.c sysfb: Move edid_info into sysfb_primary_display 2025-12-16 14:12:44 +01:00
fbsysfs.c fbdev: Use device_create_with_groups() to fix sysfs groups registration race 2026-02-14 11:07:12 +01:00
modedb.c
softcursor.c fbcon: Rename struct fbcon_ops to struct fbcon_par 2025-09-19 10:04:02 +02:00
svgalib.c
syscopyarea.c
sysfillrect.c
sysimgblt.c
sysmem.h
tileblit.c fbcon: Move fbcon callbacks into struct fbcon_bitops 2025-09-19 10:04:05 +02:00