|
@@ -1288,6 +1288,7 @@ i915_gem_create_mmap_offset(struct drm_gem_object *obj)
|
|
list->hash.key = list->file_offset_node->start;
|
|
list->hash.key = list->file_offset_node->start;
|
|
if (drm_ht_insert_item(&mm->offset_hash, &list->hash)) {
|
|
if (drm_ht_insert_item(&mm->offset_hash, &list->hash)) {
|
|
DRM_ERROR("failed to add to map hash\n");
|
|
DRM_ERROR("failed to add to map hash\n");
|
|
|
|
+ ret = -ENOMEM;
|
|
goto out_free_mm;
|
|
goto out_free_mm;
|
|
}
|
|
}
|
|
|
|
|