[lvc-project] [PATCH] fbcon: Add check for return value

Fedor Pchelkin pchelkin at ispras.ru
Sun Dec 21 15:55:22 MSK 2025


On Wed, 17. Dec 09:11, Ваторопин Андрей wrote:
> From: Andrey Vatoropin <a.vatoropin at crpt.ru>
> 
> 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: d1baa4ffa677 ("fbcon: set_con2fb_map fixes")
> Cc: stable at vger.kernel.org
> Signed-off-by: Andrey Vatoropin <a.vatoropin at crpt.ru>
> ---

Для 5.10 понадобится отдельный вариант патча, который стоит отправить в
lvc-patches с темой [PATCH 5.10].



More information about the lvc-project mailing list