Bug 43288 - drmSLLookup() returns wrong value.
Summary: drmSLLookup() returns wrong value.
Status: RESOLVED MOVED
Alias: None
Product: DRI
Classification: Unclassified
Component: libdrm (show other bugs)
Version: unspecified
Hardware: All All
: medium critical
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-27 22:31 UTC by Boram Park
Modified: 2019-09-24 17:08 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Boram Park 2011-11-27 22:31:56 UTC
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.
Comment 1 GitLab Migration User 2019-09-24 17:08:27 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/drm/issues/6.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.