Re: [syzbot] [btrfs?] [fbdev?] BUG: unable to handle kernel NULL pointer dereference in fbcon_putcs (3)

Qianqiang Liu
2024-09-24T15:08:14Z

#syz test

diff --git a/drivers/video/fbdev/core/fbcon.c b/drivers/video/fbdev/core/fbcon.c
index 3f7333dca508..fedd796c9a5c 100644
--- a/drivers/video/fbdev/core/fbcon.c
+++ b/drivers/video/fbdev/core/fbcon.c
@@ -847,6 +847,8 @@ static int set_con2fb_map(int unit, int newidx, int user)
return err;

fbcon_add_cursor_work(info);
+ } else if (vc) {
+ set_blitting_type(vc, info);
}

con2fb_map[unit] = newidx;
--
2.34.1