summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2005-09-03 02:21:22 +0000
committerDave Airlie <airlied@linux.ie>2005-09-03 02:21:22 +0000
commit80ed93c7bf9f8c8d42cbcc26e82020cfcd92fb77 (patch)
treecd78390e32a893da8b2403a602a562bad4ea1e01
parent22ec8ebb17d959486e4a865b17115e609eb688ee (diff)
check is the map containing the lock
-rw-r--r--linux-core/drm_bufs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_bufs.c b/linux-core/drm_bufs.c
index 28adc1ad..18627b7d 100644
--- a/linux-core/drm_bufs.c
+++ b/linux-core/drm_bufs.c
@@ -57,7 +57,7 @@ static drm_local_map_t *drm_find_matching_map(drm_device_t *dev,
drm_map_list_t *entry = list_entry(list, drm_map_list_t, head);
if (entry->map && map->type == entry->map->type &&
((entry->map->offset == map->offset) ||
- (map->type == _DRM_SHM))) {
+ (map->type == _DRM_SHM && map->flags==_DRM_CONTAINS_LOCK))) {
return entry->map;
}
}