]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
via_wdt: fix critical boot hang due to unnamed resource allocation
authorLi Qiang <liqiang01@kylinos.cn>
Sun, 28 Sep 2025 08:33:32 +0000 (16:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:11:46 +0000 (13:11 +0100)
commit1d56025a3af50db0f3da2792f41eb9943eee5324
tree4c4a7d023df2ede18e04c3048fc3d629e4582492
parent25fc08fc34ea080f156c4d3eae93cb67f87b5a57
via_wdt: fix critical boot hang due to unnamed resource allocation

[ Upstream commit 7aa31ee9ec92915926e74731378c009c9cc04928 ]

The VIA watchdog driver uses allocate_resource() to reserve a MMIO
region for the watchdog control register. However, the allocated
resource was not given a name, which causes the kernel resource tree
to contain an entry marked as "<BAD>" under /proc/iomem on x86
platforms.

During boot, this unnamed resource can lead to a critical hang because
subsequent resource lookups and conflict checks fail to handle the
invalid entry properly.

Signed-off-by: Li Qiang <liqiang01@kylinos.cn>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/watchdog/via_wdt.c