[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <176523152355.342815.11295174896709907592.b4-ty@bootlin.com>
Date: Mon, 8 Dec 2025 23:10:18 +0100
From: Alexandre Belloni <alexandre.belloni@...tlin.com>
To: Haotian Zhang <vulab@...as.ac.cn>
Cc: linkmauve@...kmauve.fr, linux-rtc@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] rtc: gamecube: Check the return value of ioremap()
On Wed, 26 Nov 2025 16:06:25 +0800, Haotian Zhang wrote:
> 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.
>
> [...]
Applied, thanks!
[1/1] rtc: gamecube: Check the return value of ioremap()
https://git.kernel.org/abelloni/c/d1220e47e4bd
Best regards,
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Powered by blists - more mailing lists