mbox series

[GIT,PULL] memblock: fix fragility in checks for unset node ID

Message ID ZnfADPCiONdn1F8d@kernel.org (mailing list archive)
State New
Headers show
Series [GIT,PULL] memblock: fix fragility in checks for unset node ID | expand

Pull-request

https://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock tags/fixes-2024-06-23

Message

Mike Rapoport June 23, 2024, 6:26 a.m. UTC
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(-)

Comments

pr-tracker-bot@kernel.org June 23, 2024, 3:13 p.m. UTC | #1
The pull request you sent on Sun, 23 Jun 2024 09:26:20 +0300:

> 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!