Skip to content

Commit fb6e063

Browse files
digetxSteven Price
authored andcommitted
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: [email protected] Fixes: bdefca2 ("drm/panfrost: Add the panfrost_gem_mapping concept") Reviewed-by: Steven Price <[email protected]> Signed-off-by: Dmitry Osipenko <[email protected]> Signed-off-by: Steven Price <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 8490cad commit fb6e063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/panfrost/panfrost_mmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ static int panfrost_mmu_map_fault_addr(struct panfrost_device *pfdev, int as,
518518
err_pages:
519519
drm_gem_shmem_put_pages(&bo->base);
520520
err_bo:
521-
drm_gem_object_put(&bo->base.base);
521+
panfrost_gem_mapping_put(bomapping);
522522
return ret;
523523
}
524524

0 commit comments

Comments
 (0)