summaryrefslogtreecommitdiff
path: root/lib/test_bits.c
diff options
context:
space:
mode:
authorDawei Li <dawei.li@shingroup.cn>2024-03-31 13:34:41 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-07-05 09:12:50 +0200
commit763896ab62a672d728f5eb10ac90d98c607a8509 (patch)
tree355eb2b3e2ee3a3597f615e9e7efd6ad3011642e /lib/test_bits.c
parent9dadab0db7d904413ea1cdaa13f127da05c31e71 (diff)
net/dpaa2: Avoid explicit cpumask var allocation on stack
[ Upstream commit d33fe1714a44ff540629b149d8fab4ac6967585c ] For CONFIG_CPUMASK_OFFSTACK=y kernel, explicit allocation of cpumask variable on stack is not recommended since it can cause potential stack overflow. Instead, kernel code should always use *cpumask_var API(s) to allocate cpumask var in config-neutral way, leaving allocation strategy to CONFIG_CPUMASK_OFFSTACK. Use *cpumask_var API(s) to address it. Signed-off-by: Dawei Li <dawei.li@shingroup.cn> Link: https://lore.kernel.org/r/20240331053441.1276826-3-dawei.li@shingroup.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'lib/test_bits.c')
0 files changed, 0 insertions, 0 deletions