diff options
author | Dmitry Osipenko <dmitry.osipenko@collabora.com> | 2022-06-30 23:06:00 +0300 |
---|---|---|
committer | Steven Price <steven.price@arm.com> | 2022-07-04 16:38:00 +0100 |
commit | fb6e0637ab7ebd8e61fe24f4d663c4bae99cfa62 (patch) | |
tree | 3ca98ae0d6e752c9e8440d0eef897f8381df5d9a /drivers/gpu | |
parent | 8490cad4dc4e2ee265ba9e12cd47bdfd6b9a3d34 (diff) | |
download | linux-fb6e0637ab7ebd8e61fe24f4d663c4bae99cfa62.tar.bz2 |
drm/panfrost: Put mapping instead of shmem obj on panfrost_mmu_map_fault_addr() error
When panfrost_mmu_map_fault_addr() fails, the BO's mapping should be
unreferenced and not the shmem object which backs the mapping.
Cc: stable@vger.kernel.org
Fixes: bdefca2d8dc0 ("drm/panfrost: Add the panfrost_gem_mapping concept")
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220630200601.1884120-2-dmitry.osipenko@collabora.com
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/panfrost/panfrost_mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/panfrost/panfrost_mmu.c b/drivers/gpu/drm/panfrost/panfrost_mmu.c index d3f82b26a631..b285a8001b1d 100644 --- a/drivers/gpu/drm/panfrost/panfrost_mmu.c +++ b/drivers/gpu/drm/panfrost/panfrost_mmu.c @@ -518,7 +518,7 @@ err_map: err_pages: drm_gem_shmem_put_pages(&bo->base); err_bo: - drm_gem_object_put(&bo->base.base); + panfrost_gem_mapping_put(bomapping); return ret; } |