diff options
author | Dan Carpenter <[email protected]> | 2020-12-14 19:12:11 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2020-12-15 12:13:44 -0800 |
commit | 7fc2513aa237e2ce239ab54d7b04d1d79b317110 (patch) | |
tree | 1bff0ceb55d41c5e08514a21aa2a8a9140db9c63 /lib/mpi/mpi-cmp.c | |
parent | 39a0feaef1105d79028fac3078e3c67e137ce98d (diff) |
hugetlb: fix an error code in hugetlb_reserve_pages()
Preserve the error code from region_add() instead of returning success.
Link: https://lkml.kernel.org/r/X9NGZWnZl5/Mt99R@mwanda
Fixes: 0db9d74ed884 ("hugetlb: disable region_add file_region coalescing")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Mike Kravetz <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Cc: Mina Almasry <[email protected]>
Cc: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions