]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/ttm: Don't leak a resource on eviction error
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Mon, 26 Jun 2023 09:14:49 +0000 (11:14 +0200)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Tue, 27 Jun 2023 06:51:26 +0000 (08:51 +0200)
commite8188c461ee015ba0b9ab2fc82dbd5ebca5a5532
treefcac31512e126c92b617e5d2acd86001da833b9f
parent7aa83fbd712a6f08ffa67890061f26d140c2a84f
drm/ttm: Don't leak a resource on eviction error

On eviction errors other than -EMULTIHOP we were leaking a resource.
Fix.

v2:
- Avoid yet another goto (Andi Shyti)

Fixes: 403797925768 ("drm/ttm: Fix multihop assert on eviction.")
Cc: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Cc: Christian Koenig <christian.koenig@amd.com>
Cc: Huang Rui <ray.huang@amd.com>
Cc: dri-devel@lists.freedesktop.org
Cc: <stable@vger.kernel.org> # v5.15+
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com> #v1
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230626091450.14757-4-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/ttm/ttm_bo.c