mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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>
This commit is contained in:
parent
fcffb94766
commit
5618ca6abc
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue