aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorLiam R. Howlett <Liam.Howlett@Oracle.com>2023-01-20 11:26:38 -0500
committerAndrew Morton <akpm@linux-foundation.org>2023-02-09 16:51:36 -0800
commitcc8d1b097de78bd25b7b1ed32018b21cecbf3f6c (patch)
treeb6b7cf6fdeddfa5ca6554255c1278a414c1766b3 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentb373037fa9bb374f26bbabc0779fe990d02d33b7 (diff)
downloadlinux-cc8d1b097de78bd25b7b1ed32018b21cecbf3f6c.tar.gz
linux-cc8d1b097de78bd25b7b1ed32018b21cecbf3f6c.tar.bz2
linux-cc8d1b097de78bd25b7b1ed32018b21cecbf3f6c.zip
mmap: clean up mmap_region() unrolling
Move logic of unrolling to the error path as apposed to duplicating it within the function body. This reduces the potential of missing an update to one path when making changes. Link: https://lkml.kernel.org/r/20230120162650.984577-38-Liam.Howlett@oracle.com Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> Cc: Li Zetao <lizetao1@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions