[Intel-gfx] [Patch] KMS: Return false when the enum property value is not found

yakui.zhao at intel.com yakui.zhao at intel.com
Sat Oct 10 08:55:17 CEST 2009


From: Zhao Yakui <yakui.zhao at intel.com>

When the enum property value is not found, the set_property callback function
should return false instead of true. Otherwise the xrandr tool will report 
the incorrect property value.

Signed-off-by: Zhao Yakui <yakui.zhao at intel.com>
---
 src/drmmode_display.c |    1 +
 1 file changed, 1 insertion(+)

Index: xf86_video_intel/src/drmmode_display.c
===================================================================
--- xf86_video_intel.orig/src/drmmode_display.c	2009-10-10 14:52:04.000000000 +0800
+++ xf86_video_intel/src/drmmode_display.c	2009-10-10 14:52:58.000000000 +0800
@@ -1143,6 +1143,7 @@
 		    return TRUE;
 		}
 	    }
+	    return FALSE;
 	}
     }
 



More information about the Intel-gfx mailing list