modesetting: add NULL check for drmModeObjectGetProperties in VRR check

Co-Authored-by: Claude Code <noreply@anthropic.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2184>
This commit is contained in:
Peter Hutterer 2026-04-17 10:50:59 +10:00 committed by Marge Bot
parent b67e0233e6
commit a29c8a352c

View file

@ -3383,6 +3383,8 @@ drmmode_connector_check_vrr_capable(uint32_t drm_fd, int connector_id)
props = drmModeObjectGetProperties(drm_fd, connector_id,
DRM_MODE_OBJECT_CONNECTOR);
if (!props)
return FALSE;
for (i = 0; !found && i < props->count_props; ++i) {
drmModePropertyPtr drm_prop = drmModeGetProperty(drm_fd, props->props[i]);