diff options
| author | Huang, Ying <[email protected]> | 2022-03-22 07:39:22 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2022-03-22 07:49:22 +0000 |
| commit | ab31c7fd2d37bc3580d9d712d5f2dfb69901fca9 (patch) | |
| tree | e924fd304530194eaab0b4b30361f6170206bdee /drivers/clocksource/timer-microchip-pit64b.c | |
| parent | headers/prep: Fix header to build standalone: <linux/psi.h> (diff) | |
| download | kernel-ab31c7fd2d37bc3580d9d712d5f2dfb69901fca9.tar.gz kernel-ab31c7fd2d37bc3580d9d712d5f2dfb69901fca9.zip | |
sched/numa: Fix boot crash on arm64 systems
Qian Cai reported a boot crash on arm64 systems, caused by:
0fb3978b0aac ("sched/numa: Fix NUMA topology for systems with CPU-less nodes")
The bug is that node_state() must be supplied a valid node_states[] array index,
but in task_numa_placement() the max_nid search can fail with NUMA_NO_NODE,
which is not a valid index.
Fix it by checking that max_nid is a valid index.
[ mingo: Added changelog. ]
Fixes: 0fb3978b0aac ("sched/numa: Fix NUMA topology for systems with CPU-less nodes")
Reported-by: Qian Cai <[email protected]>
Tested-by: Qian Cai <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Linus Torvalds <[email protected]>
Signed-off-by: "Huang, Ying" <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/clocksource/timer-microchip-pit64b.c')
0 files changed, 0 insertions, 0 deletions
