drm/i915: Free wa_batchbuffer when freeing error state
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Mon, 4 May 2015 14:44:11 +0000 (17:44 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 8 May 2015 11:03:37 +0000 (13:03 +0200)
wa_batchbuffer is part of some error states. Make sure it
is freed.

Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gpu_error.c

index ac22614..a3e330d 100644 (file)
@@ -554,6 +554,7 @@ static void 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].wa_batchbuffer);
                i915_error_object_free(error->ring[i].ringbuffer);
                i915_error_object_free(error->ring[i].hws_page);
                i915_error_object_free(error->ring[i].ctx);