mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-09 21:18:18 +02:00
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:
parent
b67e0233e6
commit
a29c8a352c
1 changed files with 2 additions and 0 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue