mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
modesetting: return null for get_modes if output could not be retrieved
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
This commit is contained in:
@@ -709,6 +709,9 @@ drmmode_output_get_modes(xf86OutputPtr output)
|
||||
drmModePropertyPtr props;
|
||||
xf86MonPtr mon = NULL;
|
||||
|
||||
if (!koutput)
|
||||
return NULL;
|
||||
|
||||
/* look for an EDID property */
|
||||
for (i = 0; i < koutput->count_props; i++) {
|
||||
props = drmModeGetProperty(drmmode->fd, koutput->props[i]);
|
||||
|
||||
Reference in New Issue
Block a user