linux-stable/arch/sparc
Randy Dunlap 6796844c05 sparc: vDSO: fix return value of __setup handler
[ Upstream commit 5378f00c93 ]

__setup() handlers should return 1 to obsolete_checksetup() in
init/main.c to indicate that the boot option has been handled.
A return of 0 causes the boot option/value to be listed as an Unknown
kernel parameter and added to init's (limited) argument or environment
strings. Also, error return codes don't mean anything to
obsolete_checksetup() -- only non-zero (usually 1) or zero.
So return 1 from vdso_setup().

Fixes: 9a08862a5d ("vDSO for sparc")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: Igor Zhbanov <izh1979@gmail.com>
Link: lore.kernel.org/r/64644a2f-4a20-bab3-1e15-3b2cdd0defe3@omprussia.ru
Cc: "David S. Miller" <davem@davemloft.net>
Cc: sparclinux@vger.kernel.org
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Nick Alcock <nick.alcock@oracle.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: stable@vger.kernel.org
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Link: https://lore.kernel.org/r/20240211052808.22635-1-rdunlap@infradead.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-13 12:58:05 +02:00
..
boot
configs
crypto crypto: sparc - rename sha256 to sha256_alg 2020-07-16 21:49:04 +10:00
include sparc/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:57:37 +02:00
kernel sparc64: NMI watchdog: fix return value of __setup handler 2024-04-13 12:58:04 +02:00
lib sparc32: fix a braino in fault handling in csum_and_copy_..._user() 2023-11-08 17:30:45 +01:00
math-emu treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
mm sparc32: Limit memblock allocation to low memory 2021-03-17 17:06:24 +01:00
net bpf: Introduce BPF nospec instruction for mitigating Spectre v4 2021-08-04 12:46:44 +02:00
oprofile
power
prom
vdso sparc: vDSO: fix return value of __setup handler 2024-04-13 12:58:05 +02:00
Kbuild
Kconfig sparc/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:57:37 +02:00
Kconfig.debug
Makefile