Files
linux/drivers/rtc
Haotian Zhang d1220e47e4 rtc: gamecube: Check the return value of ioremap()
The function ioremap() in gamecube_rtc_read_offset_from_sram() can fail
and return NULL, which is dereferenced without checking, leading to a
NULL pointer dereference.

Add a check for the return value of ioremap() and return -ENOMEM on
failure.

Fixes: 86559400b3 ("rtc: gamecube: Add a RTC driver for the GameCube, Wii and Wii U")
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Reviewed-by: Link Mauve <kernel@linkmauve.fr>
Link: https://patch.msgid.link/20251126080625.1752-1-vulab@iscas.ac.cn
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
2025-12-08 22:54:17 +01:00
..
2022-06-24 21:24:02 +02:00
2021-04-29 23:03:26 +02:00
2024-08-28 21:54:51 +01:00
2025-12-08 22:31:12 +01:00
2025-06-02 00:25:32 +02:00
2024-05-07 23:40:10 +02:00
2025-09-16 17:38:20 +02:00
2025-09-16 17:38:20 +02:00
2025-10-05 22:51:06 +02:00
2025-11-03 14:38:38 +01:00
2025-07-22 13:06:19 +02:00