xf86-video-amdgpu: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 24 17:52:33 UTC 2025


 src/drmmode_display.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 9ca573570eb01c27ddfdced92b309c4c417b2a9d
Author: Mario Limonciello <mario.limonciello at amd.com>
Date:   Fri Jun 20 00:33:16 2025 -0500

    Fix a crash when initializing with a property with no atoms
    
    Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
    Signed-off-by: Mario Limonciello <mario.limonciello at amd.com>

diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index b74b237..15df881 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -2454,7 +2454,7 @@ drmmode_output_set_property(xf86OutputPtr output, Atom property,
 	for (i = 0; i < drmmode_output->num_props; i++) {
 		drmmode_prop_ptr p = &drmmode_output->props[i];
 
-		if (p->atoms[0] != property)
+		if (p->num_atoms && p->atoms[0] != property)
 			continue;
 
 		if (p->mode_prop->flags & DRM_MODE_PROP_RANGE) {


More information about the xorg-commit mailing list