diff options
Diffstat (limited to 'linux-core/drm_context.c')
-rw-r--r-- | linux-core/drm_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_context.c b/linux-core/drm_context.c index 39267b14..88b485ff 100644 --- a/linux-core/drm_context.c +++ b/linux-core/drm_context.c @@ -195,7 +195,7 @@ int DRM(setsareactx)(struct inode *inode, struct file *filp, down(&dev->struct_sem); list_for_each(list, &dev->maplist->head) { - r_list = (drm_map_list_t *)list; + r_list = list_entry(list, drm_map_list_t, head); if(r_list->map && r_list->map->handle == request.handle) goto found; |