]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Don't leak the capture list items
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Thu, 9 Dec 2021 14:13:04 +0000 (15:13 +0100)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Mon, 13 Dec 2021 20:23:56 +0000 (21:23 +0100)
commitc280dd8ca60f4ecece810429d86dfe8e5075164e
tree76b6a284ce915363eee862be0020e300779b0abb
parent9785539a46600c98e0943ab672dcabe7676b7113
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: c310ed796a81 ("drm/i915: Update error capture code to avoid using the current vma state")
Cc: Ramalingam C <ramalingam.c@intel.com>
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211209141304.393479-1-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/i915/i915_request.c