android_kernel_sony_sdm845/arch
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Zhengyuan Liu ed121ea5a3 arm64/mm: return cpu_all_mask when node is NUMA_NO_NODE
[ Upstream commit a194c5f2d2b3a05428805146afcabe5140b5d378 ]

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.

Signed-off-by: Zhengyuan Liu <liuzhengyuan@tj.kylinos.cn>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Link: https://lore.kernel.org/r/20200921023936.21846-1-liuzhengyuan@tj.kylinos.cn
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-11-10 10:23:54 +01:00
..
alpha alpha: fix annotation of io{read,write}{16,32}be() 2020-08-26 10:29:05 +02:00
arc irqchip/eznps: Fix build error for !ARC700 builds 2020-09-23 08:46:10 +02:00
arm ARM: 8997/2: hw_breakpoint: Handle inexact watchpoint addresses 2020-11-10 10:23:52 +01:00
arm64 arm64/mm: return cpu_all_mask when node is NUMA_NO_NODE 2020-11-10 10:23:54 +01:00
avr32
blackfin pinctrl: adi2: Fix Kconfig build problem 2017-12-20 10:07:32 +01:00
c6x c6x/ptrace: Remove useless PTRACE_SETREGSET implementation 2017-03-31 10:31:46 +02:00
cris
frv futex: Remove duplicated code and fix undefined behaviour 2018-05-19 10:27:00 +02:00
h8300 h8300: use cc-cross-prefix instead of hardcoding h8300-unknown-linux- 2019-04-05 22:29:05 +02:00
hexagon hexagon: work around compiler crash 2020-01-23 08:19:38 +01:00
ia64 ia64:unwind: fix double free for mod->arch.init_unw_table 2019-10-05 12:30:20 +02:00
m32r
m68k m68k: q40: Fix info-leak in rtc_ioctl 2020-10-01 20:40:01 +02:00
metag metag/uaccess: Check access_ok in strncpy_from_user 2017-05-25 15:44:46 +02:00
microblaze microblaze: Prevent the overflow of the start 2020-02-28 15:42:42 +01:00
mips MIPS: Add the missing 'CPU_1074K' into __get_cpu_type() 2020-10-01 20:40:18 +02:00
mn10300 mn10300/misalignment: Use SIGSEGV SEGV_MAPERR to report a failed user copy 2018-02-17 13:21:20 +01:00
nios2 nios2: ksyms: Add missing symbol exports 2020-01-29 10:24:18 +01:00
openrisc openrisc: Fix issue with argument clobbering for clone/fork 2020-06-30 15:38:28 -04:00
parisc parisc: add support for cmpxchg on u8 pointers 2020-08-21 11:01:51 +02:00
powerpc powerpc/powernv/smp: Fix spurious DBG() warning 2020-11-10 10:23:52 +01:00
s390 s390/init: add missing __init annotations 2020-10-01 20:40:16 +02:00
score
sh sh: landisk: Add missing initialization of sh_io_port_base 2020-08-21 11:02:11 +02:00
sparc sparc64: remove mm_cpumask clearing to fix kthread_use_mm race 2020-11-10 10:23:52 +01:00
tile locking/x86: Remove the unused atomic_inc_short() methd 2020-01-12 11:24:19 +01:00
um um: change sigio_spinlock to a mutex 2020-11-10 10:23:52 +01:00
unicore32
x86 arch/x86/amd/ibs: Fix re-arming IBS Fetch 2020-11-10 10:23:50 +01:00
xtensa block: Move SECTOR_SIZE and SECTOR_SHIFT definitions into <linux/blkdev.h> 2020-09-12 11:47:36 +02:00
.gitignore
Kconfig cpu/hotplug: Provide knobs to control SMT 2018-08-15 18:14:46 +02:00