Thread (2 messages) flat view 2 messages, 2 authors, 2020-09-21

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

From: Will Deacon <will@kernel.org>
Date: 2020-09-21 22:16:15

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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help