linux-stable/arch/um
Tiwei Bie 863b1c70e7 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>
2025-08-28 16:24:08 +02:00
..
configs
drivers um: rtc: Avoid shadowing err in uml_rtc_start() 2025-08-28 16:24:08 +02:00
include sched: Add wrapper for get_wchan() to keep task blocked 2025-08-28 16:24:03 +02:00
kernel sched: Add wrapper for get_wchan() to keep task blocked 2025-08-28 16:24:03 +02:00
os-Linux um: time-travel: fix signal blocking race/hang 2024-08-19 05:45:23 +02:00
scripts
.gitignore
Kbuild
Kconfig
Kconfig.debug
Makefile um: let 'make clean' properly clean underlying SUBARCH as well 2025-06-04 14:38:08 +02:00
Makefile-os-Linux
Makefile-skas