mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user