modesetting: pageflip: clear new_front_bo struct in ms_do_pageflip

ms_do_pageflip function temporary creates and destroy drmmode_bo object, but
the structure is stack ( values goes uninitialized). This became problem
because in f4362fc4ec drmmode_bo struct got extra
fields which is checked during drmmode_bo_destroy and causes crash.

Signed-off-by: Tautvis <gtautvis@gmail.com>
This commit is contained in:
Tautvis
2026-01-29 01:49:04 +02:00
committed by Enrico Weigelt
parent 547d13575d
commit af9afa287a

View File

@@ -414,8 +414,8 @@ ms_do_pageflip(ScreenPtr screen,
ms->glamor.block_handler(screen);
memset(&new_front_bo,0,sizeof(new_front_bo));
new_front_bo.gbm = ms->glamor.gbm_bo_from_pixmap(screen, new_front);
new_front_bo.dumb = NULL;
if (!new_front_bo.gbm) {
xf86DrvMsg(scrn->scrnIndex, X_ERROR,