diff options
| author | Miaohe Lin <[email protected]> | 2022-08-18 21:00:12 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2022-09-11 20:25:57 -0700 |
| commit | 6bbabd041dfd4823c752940286656d404621bf38 (patch) | |
| tree | 8adb134e06bcc44817461a154f64abb5702dac93 /tools/perf/scripts/python/libxed.py | |
| parent | f36a5543a74883c21a59b8082b403a13c7654769 (diff) | |
mm, hwpoison: fix page refcnt leaking in unpoison_memory()
When free_raw_hwp_pages() fails its work, the refcnt of the hugetlb page
would have been incremented if ret > 0. Using put_page() to fix refcnt
leaking in this case.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: debb6b9c3fdd ("mm, hwpoison: make unpoison aware of raw error info in hwpoisoned hugepage")
Signed-off-by: Miaohe Lin <[email protected]>
Acked-by: Naoya Horiguchi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions