diff options
author | Xiao Yang <[email protected]> | 2024-09-09 21:56:21 +0900 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-09-17 01:07:00 -0700 |
commit | 659c55ef981bb63355a65ffc3b3b5cad562b806a (patch) | |
tree | 36faeb3f2c8e663ffea23b5e3c569751c6be27c7 /lib/crypto/mpi/mpiutil.c | |
parent | f2c5101be43677c227974912a043da29a62743ef (diff) |
mm/vma: return the exact errno in vms_gather_munmap_vmas()
__split_vma() and mas_store_gfp() returns several types of errno on
failure so don't ignore them in vms_gather_munmap_vmas(). For example,
__split_vma() returns -EINVAL when an unaligned huge page is unmapped.
This issue is reproduced by ltp memfd_create03 test.
Don't initialise the error variable and assign it when a failure actually
occurs.
[[email protected]: fix whitespace, per Liam]
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 6898c9039bc8 ("mm/vma: extract the gathering of vmas from do_vmi_align_munmap()")
Signed-off-by: Xiao Yang <[email protected]>
Suggested-by: Lorenzo Stoakes <[email protected]>
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-lkp/[email protected]
Cc: "Liam R. Howlett" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions