Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 166036
b: refs/heads/master
c: ab18282
h: refs/heads/master
v: v3
  • Loading branch information
Chris Wilson committed Sep 23, 2009
1 parent a73daad commit e17d837
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bb6baf76f45708dbba651ed76a7ad94462f30c0b
refs/heads/master: ab18282d58ce67ee5cd720d99a91c1a2bbf3e693
8 changes: 8 additions & 0 deletions trunk/drivers/gpu/drm/i915/i915_gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,14 @@ i915_gem_mmap_gtt_ioctl(struct drm_device *dev, void *data,

obj_priv = obj->driver_private;

if (obj_priv->madv != I915_MADV_WILLNEED) {
DRM_ERROR("Attempting to mmap a purgeable buffer\n");
drm_gem_object_unreference(obj);
mutex_unlock(&dev->struct_mutex);
return -EINVAL;
}


if (!obj_priv->mmap_offset) {
ret = i915_gem_create_mmap_offset(obj);
if (ret) {
Expand Down

0 comments on commit e17d837

Please sign in to comment.