Commit d2ce97bd authored by Błażej Szczygieł's avatar Błażej Szczygieł Committed by Olivier Fourdan
Browse files

present: Check for NULL to prevent crash

Closes: xorg/xserver#1275

Signed-off-by: Błażej Szczygieł's avatarBłażej Szczygieł <>
Tested-by: Aaron Plattner's avatarAaron Plattner <>
(cherry picked from commit 22d58188)
parent 97c5b777
......@@ -168,6 +168,9 @@ present_scmd_get_crtc(present_screen_priv_ptr screen_priv, WindowPtr window)
if (!screen_priv->info)
return NULL;
if (!screen_priv->info->get_crtc)
return NULL;
return (*screen_priv->info->get_crtc)(window);
......@@ -206,6 +209,9 @@ present_flush(WindowPtr window)
if (!screen_priv->info)
if (!screen_priv->info->flush)
(*screen_priv->info->flush) (window);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment