aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_request.c
diff options
context:
space:
mode:
authorThomas Hellström <[email protected]>2021-12-09 14:13:04 +0000
committerThomas Hellström <[email protected]>2021-12-13 20:23:56 +0000
commit40aa583ea345624967c5b6232082d7b839de537c (patch)
tree76b6a284ce915363eee862be0020e300779b0abb /drivers/gpu/drm/i915/i915_request.c
parentdrm/i915/guc: support bigger RSA keys (diff)
downloadkernel-40aa583ea345624967c5b6232082d7b839de537c.tar.gz
kernel-40aa583ea345624967c5b6232082d7b839de537c.zip
drm/i915: Don't leak the capture list items
When we recently converted the capture code to use vma snapshots, we forgot to free the struct i915_capture_list list items after use. Fix that by bringing back a kfree. Fixes: ff20afc4cee7 ("drm/i915: Update error capture code to avoid using the current vma state") Cc: Ramalingam C <[email protected]> Signed-off-by: Thomas Hellström <[email protected]> Reviewed-by: Matthew Auld <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/i915/i915_request.c')
-rw-r--r--drivers/gpu/drm/i915/i915_request.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_request.c b/drivers/gpu/drm/i915/i915_request.c
index 471cde0e9883..fe682b6902aa 100644
--- a/drivers/gpu/drm/i915/i915_request.c
+++ b/drivers/gpu/drm/i915/i915_request.c
@@ -307,6 +307,7 @@ void i915_request_free_capture_list(struct i915_capture_list *capture)
struct i915_capture_list *next = capture->next;
i915_vma_snapshot_put(capture->vma_snapshot);
+ kfree(capture);
capture = next;
}
}