[PATCH 08/18] fixup-leak
Matthew Auld
matthew.auld at intel.com
Wed May 12 15:16:05 UTC 2021
---
drivers/gpu/drm/i915/gem/i915_gem_ttm.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c
index e3718c3cb299..eb36256b79f7 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_ttm.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_ttm.c
@@ -278,10 +278,6 @@ i915_ttm_resource_get_st(struct drm_i915_gem_object *obj,
if (man->use_tt)
return i915_ttm_tt_get_st(bo->ttm);
- st = kzalloc(sizeof(*st), GFP_KERNEL);
- if (!st)
- return ERR_PTR(-ENOMEM);
-
st = intel_region_ttm_node_to_st(obj->mm.region, res->mm_node);
if (IS_ERR(st))
return ERR_CAST(st);
--
2.26.3
More information about the Intel-gfx-trybot
mailing list