memblock: fix fragility in checks for unset node ID
Hi Linus,
The following changes since commit 3ac36aa7307363b7247ccb6f6a804e11496b2b36:
x86/mm/numa: Use NUMA_NO_NODE when calling memblock_set_node() (2024-06-06 22:20:39 +0300)
are available in the Git repository at:
https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock tags/fixes-2024-06-23
for you to fetch changes up to 8043832e2a123fd9372007a29192f2f3ba328cd6:
memblock: use numa_valid_node() helper to check for invalid node ID (2024-06-16 10:17:57 +0300)
----------------------------------------------------------------
memblock: fix fragility in checks for unset node ID
Use numa_valid_node() function to verify that nid is a valid node ID instead of inconsistent comparisons with either NUMA_NO_NODE or MAX_NUMNODES.
----------------------------------------------------------------
Mike Rapoport (IBM) (1):
memblock: use numa_valid_node() helper to check for invalid node ID
include/linux/numa.h | 5 +++++ mm/memblock.c | 28 +++++++--------------------- 2 files changed, 12 insertions(+), 21 deletions(-)
Signature · 2 lines
Sincerely yours, Mike.
The pull request you sent on Sun, 23 Jun 2024 09:26:20 +0300:
The pull request you sent on Sun, 23 Jun 2024 09:26:20 +0300:
Quoted 1 line
https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock tags/fixes-2024-06-23
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/0971e82ea34c5e01cd3e68d231caa81780e8cafb
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html