linux-stable/arch/sparc
Randy Dunlap f9f20f3f7a 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:50:03 +02:00
..
boot
configs scsi: sr: remove references to BLK_DEV_SR_VENDOR, leave it enabled 2020-07-22 09:32:04 +02:00
crypto crypto: shash - remove useless setting of type flags 2018-07-09 00:30:24 +08:00
include sparc/cpu: Switch to arch_cpu_finalize_init() 2023-08-08 19:49:17 +02:00
kernel sparc64: NMI watchdog: fix return value of __setup handler 2024-04-13 12:50:03 +02:00
lib sparc64: fix pci_iounmap() when CONFIG_PCI is not set 2021-10-09 14:11:03 +02:00
math-emu
mm mips,s390,sh,sparc: gup: Work around the "COW can break either way" issue 2022-01-27 09:04:34 +01:00
net bpf: Introduce BPF nospec instruction for mitigating Spectre v4 2021-09-22 11:47:58 +02:00
oprofile
power
prom
vdso sparc: vDSO: fix return value of __setup handler 2024-04-13 12:50:03 +02:00
Kbuild
Kconfig sparc: fix up arch_cpu_finalize_init() build breakage. 2023-08-16 18:12:59 +02:00
Kconfig.debug Kconfig: consolidate the "Kernel hacking" menu 2018-08-02 08:06:48 +09:00
Makefile Kbuild updates for v4.19 (2nd) 2018-08-25 13:40:38 -07:00