mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-28 23:50:08 +01:00
xfree86/randr: Avoid a crash when xf86CrtcConfigPrivateIndex is -1.
This commit is contained in:
parent
1567b7243f
commit
82fba7697f
1 changed files with 1 additions and 1 deletions
|
|
@ -3152,7 +3152,7 @@ xf86_crtc_supports_gamma(ScrnInfoPtr pScrn)
|
|||
xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(pScrn);
|
||||
xf86CrtcPtr crtc;
|
||||
|
||||
if (!xf86_config)
|
||||
if ((xf86CrtcConfigPrivateIndex == -1) || !xf86_config)
|
||||
return FALSE;
|
||||
|
||||
if (xf86_config->num_crtc == 0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue