[Intel-gfx] [PATCH] drm/i915: In render_state_init reset obj in teardown path
Matthew Auld
matthew.auld at intel.com
Tue Apr 26 09:21:12 UTC 2016
The teardown path in render_state_init leaves so->obj != NULL.
Suggested-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>
Signed-off-by: Matthew Auld <matthew.auld at intel.com>
---
drivers/gpu/drm/i915/i915_gem_render_state.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/i915/i915_gem_render_state.c b/drivers/gpu/drm/i915/i915_gem_render_state.c
index 71611bf..10f3cf0 100644
--- a/drivers/gpu/drm/i915/i915_gem_render_state.c
+++ b/drivers/gpu/drm/i915/i915_gem_render_state.c
@@ -70,6 +70,7 @@ static int render_state_init(struct render_state *so, struct drm_device *dev)
free_gem:
drm_gem_object_unreference(&so->obj->base);
+ so->obj = NULL;
return ret;
}
--
2.4.11
More information about the Intel-gfx
mailing list