drm/i915: Fix vma resource freeing
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Wed, 19 Jan 2022 17:47:34 +0000 (18:47 +0100)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Wed, 26 Jan 2022 13:02:31 +0000 (14:02 +0100)
commit8f4f9a3b3a0b733f8fd102f9e0843cad8d055c83
tree478e3f9e137f0c1f8752141549d4fcecceacb75e
parentcec49bce6e0cdf916433a248402bfdecbf6589b0
drm/i915: Fix vma resource freeing

In some cases we use leftover kfree() instead of i915_vma_resource_free().
Fix this.

Fixes: 2f6b90da9192 ("drm/i915: Use vma resources for async unbinding")
Reported-by: Robert Beckett <bob.beckett@collabora.com>
Cc: Matthew Auld <matthew.auld@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/20220119174734.213552-1-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/i915/i915_vma.c
drivers/gpu/drm/i915/i915_vma_resource.c