diff options
author | Aneesh Kumar K.V <[email protected]> | 2023-07-24 23:43:20 +0530 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2023-07-28 16:47:19 +1000 |
commit | 6722b25712054c0f903b839b8f5088438dd04df3 (patch) | |
tree | 4573d65e6c31fdf5903bdaa2640cc79bb54a49ed /drivers/usb/cdns3/cdns3-trace.c | |
parent | 106ea7ffd56b0f9454cd4f625474967f12ac4dbd (diff) |
powerpc/mm/altmap: Fix altmap boundary check
altmap->free includes the entire free space from which altmap blocks
can be allocated. So when checking whether the kernel is doing altmap
block free, compute the boundary correctly, otherwise memory hotunplug
can fail.
Fixes: 9ef34630a461 ("powerpc/mm: Fallback to RAM if the altmap is unusable")
Signed-off-by: "Aneesh Kumar K.V" <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions