From: Ben Widawsky Date: Sat, 25 May 2013 21:42:54 +0000 (-0700) Subject: drm/i915: Fix error state memory leaks X-Git-Tag: next-20130527~50^2~5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8c66af2b92391b68a9efaa69ac8bb7e69ec61587;p=karo-tx-linux.git drm/i915: Fix error state memory leaks Found with kmemleak. Signed-off-by: Ben Widawsky Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index 6efe3b0d3e84..4df2b3fa4ebd 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915/i915_irq.c @@ -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,