mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 04:40:02 +01:00
Merge branch 'xf86CompatOutput-fix' into 'master'
xf86: check return value of XF86_CRTC_CONFIG_PTR in xf86CompatOutput() See merge request xorg/xserver!835
This commit is contained in:
commit
7c78d6c748
1 changed files with 1 additions and 1 deletions
|
|
@ -842,7 +842,7 @@ xf86CompatOutput(ScrnInfoPtr pScrn)
|
|||
if (xf86CrtcConfigPrivateIndex == -1)
|
||||
return NULL;
|
||||
config = XF86_CRTC_CONFIG_PTR(pScrn);
|
||||
if (config->compat_output < 0)
|
||||
if ((config == NULL) || (config->compat_output < 0))
|
||||
return NULL;
|
||||
return config->output[config->compat_output];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue