diff options
author | Liam R. Howlett <Liam.Howlett@Oracle.com> | 2023-01-20 11:26:38 -0500 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-02-09 16:51:36 -0800 |
commit | cc8d1b097de78bd25b7b1ed32018b21cecbf3f6c (patch) | |
tree | b6b7cf6fdeddfa5ca6554255c1278a414c1766b3 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | b373037fa9bb374f26bbabc0779fe990d02d33b7 (diff) | |
download | linux-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