drm/i915: Fix error state memory leaks
Subsystems (2)
PATCH 1/1 drm/i915: Fix error state memory leaks
Found with kmemleak.
Signed-off-by Ben Widawsky <[email protected]>
--- drivers/gpu/drm/i915/i915_irq.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/i915/i915_irq.c +2 -0
@@ -1564,11 +1564,13 @@ i915_error_state_free(struct kref *error_ref)for (i =0 ; i <ARRAY_SIZE (error->ring); i++) {i915_error_object_free (error->ring[i].batchbuffer);i915_error_object_free (error->ring[i].ringbuffer); +i915_error_object_free (error->ring[i].ctx);kfree (error->ring[i].requests); }kfree (error->active_bo);kfree (error->overlay); +kfree (error->display);kfree (error); } static void capture_bo(struct drm_i915_error_buffer *err,
Signature · 1 line
1.8.2.3
Daniel Vetter
AppliedQuoted 3 lines · Ben Widawsky
Found with kmemleak.
Signed-off-by Ben Widawsky <[email protected]>
Queued for -next, thanks for the patch.
-Daniel
Quoted 29 lines
--- drivers/gpu/drm/i915/i915_irq.c | 2 ++ 1 file changed, 2 insertions(+)drivers/gpu/drm/i915/i915_irq.c +2
-0@@ -1564,11 +1564,13 @@ i915_error_state_free(struct kref *error_ref)for (i =0 ; i <ARRAY_SIZE (error->ring); i++) {i915_error_object_free (error->ring[i].batchbuffer);i915_error_object_free (error->ring[i].ringbuffer); +i915_error_object_free (error->ring[i].ctx);kfree (error->ring[i].requests); }kfree (error->active_bo);kfree (error->overlay); +kfree (error->display);kfree (error); } static void capture_bo(struct drm_i915_error_buffer *err,Signature · 6 lines
1.8.2.3 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch