Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mm: numa_clear_kernel_node_hotplug: Add NUMA_NO_NODE check for node id
The acquired memory blocks for reserved may include blocks outside of memory management. In this case, the nid variable is set to NUMA_NO_NODE (-1), so an error occurs in node_set(). This adds a check using numa_valid_node() to numa_clear_kernel_node_hotplug() that skips node_set() when nid is set to NUMA_NO_NODE. Link: https://lkml.kernel.org/r/1729070461-13576-1-git-send-email-nobuhiro1.iwamatsu@toshiba.co.jp Fixes: 8748270 ("mm: introduce numa_memblks") Signed-off-by: Nobuhiro Iwamatsu <[email protected]> Reviewed-by: Mike Rapoport (Microsoft) <[email protected]> Reviewed-by: Anshuman Khandual <[email protected]> Suggested-by: Yuji Ishikawa <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
- Loading branch information