acrn-kernel/arch
Christophe JAILLET d7e2be5da9 x86/signal: Fix the value returned by strict_sas_size()
[ Upstream commit ef6dfc4b23 ]

Functions used with __setup() return 1 when the argument has been
successfully parsed.

Reverse the returned value so that 1 is returned when kstrtobool() is
successful (i.e. returns 0).

My understanding of these __setup() functions is that returning 1 or 0
does not change much anyway - so this is more of a cleanup than a
functional fix.

I spot it and found it spurious while looking at something else.
Even if the output is not perfect, you'll get the idea with:

   $ git grep -B2 -A10 retu.*kstrtobool | grep __setup -B10

Fixes: 3aac3ebea0 ("x86/signal: Implement sigaltstack size validation")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/73882d43ebe420c9d8fb82d0560021722b243000.1673717552.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-10 09:32:53 +01:00
..
alpha
arc
arm ARM: dts: stm32: Update part number NVMEM description on stm32mp131 2023-03-10 09:32:43 +01:00
arm64 arm64/cpufeature: Fix field sign for DIT hwcap detection 2023-03-10 09:32:53 +01:00
csky
hexagon
ia64 ia64: fix build error due to switch case label appearing next to declaration 2023-02-09 11:28:23 +01:00
loongarch LoongArch: Get frame info in unwind_start() when regs is not available 2023-02-06 08:06:32 +01:00
m68k
microblaze
mips of/fdt: run soc memory setup when early_init_dt_scan_memory fails 2023-01-12 12:02:51 +01:00
nios2
openrisc
parisc parisc: Wire up PTRACE_GETREGS/PTRACE_SETREGS for compat case 2023-02-09 11:28:20 +01:00
powerpc powerpc/mm: Rearrange if-else block to avoid clang warning 2023-03-10 09:32:32 +01:00
riscv riscv: kprobe: Fixup misaligned load text 2023-02-14 19:11:53 +01:00
s390 s390/early: fix sclp_early_sccb variable lifetime 2023-03-10 09:32:53 +01:00
sh sh: define RUNTIME_DISCARD_EXIT 2023-02-25 11:25:42 +01:00
sparc
um
x86 x86/signal: Fix the value returned by strict_sas_size() 2023-03-10 09:32:53 +01:00
xtensa
.gitignore
Kconfig