linux/arch/um
Tiwei Bie 67925d8b0d um: rtc: Avoid shadowing err in uml_rtc_start()
[ Upstream commit 4c916e3b22 ]

Remove the declaration of 'err' inside the 'if (timetravel)' block,
as it would otherwise be unavailable outside that block, potentially
leading to uml_rtc_start() returning an uninitialized value.

Fixes: dde8b58d51 ("um: add a pseudo RTC")
Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20250708090403.1067440-5-tiwei.bie@linux.dev
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-08-15 12:13:42 +02:00
..
configs um: Fix hostaudio build errors 2023-08-19 23:30:22 +02:00
drivers um: rtc: Avoid shadowing err in uml_rtc_start() 2025-08-15 12:13:42 +02:00
include um: Add cmpxchg8b_emu and checksum functions to asm-prototypes.h 2025-07-06 11:01:34 +02:00
kernel um: use proper care when taking mmap lock during segfault 2025-07-06 11:01:34 +02:00
os-Linux um: remove copy_from_kernel_nofault_allowed 2025-04-10 14:39:25 +02:00
scripts um: prevent user code in modules 2023-04-20 23:06:38 +02:00
.gitignore um: gitignore: Add kernel/capflags.c 2021-12-21 21:22:43 +01:00
Kbuild um: use obj-y to descend into arch/um/*/ 2023-08-26 22:41:34 +02:00
Kconfig um: remove ARCH_NO_PREEMPT_DYNAMIC 2024-09-12 20:12:37 +02:00
Kconfig.debug um: Disable CONFIG_GCOV with MODULES 2021-04-15 23:10:33 +02:00
Makefile um: let 'make clean' properly clean underlying SUBARCH as well 2025-06-04 14:43:52 +02:00
Makefile-os-Linux x86, um: get rid of arch/um/os symlink 2008-10-22 22:55:22 -07:00
Makefile-skas arch: um: Add Clang coverage support 2024-01-05 00:30:35 +01:00