drm: fix typo on code drm getsarea
authorDave Airlie <airlied@linux.ie>
Mon, 28 May 2007 09:41:35 +0000 (19:41 +1000)
committerDave Airlie <airlied@linux.ie>
Wed, 11 Jul 2007 01:58:02 +0000 (11:58 +1000)
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/drm/drm_drv.c

index 30933bb5fd834e4c38b8dc0f47de0172d361da95..63e091071eb2efad42e64ccd9a89578c7515d387 100644 (file)
@@ -522,7 +522,7 @@ drm_local_map_t *drm_getsarea(struct drm_device *dev)
 {
        drm_map_list_t *entry;
 
-       list_for_each_entry(entry, &dev->maplist->head, head) {
+       list_for_each_entry(entry, &dev->maplist, head) {
                if (entry->map && entry->map->type == _DRM_SHM &&
                    (entry->map->flags & _DRM_CONTAINS_LOCK)) {
                        return entry->map;