drmSLLookup() returns wrong value.
Submitted by Boram Park
Assigned to Default DRI bug account
Description
diff --git a/xf86drmSL.c b/xf86drmSL.c
index acddb54..1937507 100644
--- a/xf86drmSL.c
+++ b/xf86drmSL.c
@@ -252,7 +252,7 @@ int drmSLLookup(void *l, unsigned long key, void **value)
entry = SLLocate(list, key, update);
if (entry && entry->key == key) {
- *value = entry;
+ *value = entry->value;
return 0;
}
*value = NULL;
*value seems to be entry->value, not entry.
Edited by Eric Engestrom