summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-12-02 16:15:30 +0100
committerEric Anholt <eric@anholt.net>2009-12-08 00:44:30 +0100
commit5618ca6abc2d6f475b258badc017a5254cf43d1b (patch)
treeb3b3f9016d3db00c6dc62dceb56bd4c4c00eced2 /drivers/gpu
parentdrm/i915: Report purgeable status in buffer lists. (diff)
downloadlinux-5618ca6abc2d6f475b258badc017a5254cf43d1b.tar.xz
linux-5618ca6abc2d6f475b258badc017a5254cf43d1b.zip
drm/i915: Set the error code after failing to insert new offset into mm ht.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: stable@kernel.org Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 5b46623d62d4..917b8377ae28 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -1288,6 +1288,7 @@ i915_gem_create_mmap_offset(struct drm_gem_object *obj)
list->hash.key = list->file_offset_node->start;
if (drm_ht_insert_item(&mm->offset_hash, &list->hash)) {
DRM_ERROR("failed to add to map hash\n");
+ ret = -ENOMEM;
goto out_free_mm;
}