[PATCH v2] arm64/mm: return cpu_all_mask when node is NUMA_NO_NODE

Will Deacon will at kernel.org
Mon Sep 21 18:14:51 EDT 2020


On Mon, 21 Sep 2020 10:39:36 +0800, Zhengyuan Liu wrote:
> The @node passed to cpumask_of_node() can be NUMA_NO_NODE, in that
> case it will trigger the following WARN_ON(node >= nr_node_ids) due to
> mismatched data types of @node and @nr_node_ids. Actually we should
> return cpu_all_mask just like most other architectures do if passed
> NUMA_NO_NODE.
> 
> Also add a similar check to the inline cpumask_of_node() in numa.h.

Applied to arm64 (for-next/misc), thanks!

[1/1] arm64/mm: return cpu_all_mask when node is NUMA_NO_NODE
      https://git.kernel.org/arm64/c/a194c5f2d2b3

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev



More information about the linux-arm-kernel mailing list