[PATCH] clocksource/drivers/sun5i: Handle error returns from devm_reset_control_get_optional_exclusive()

Daniel Lezcano daniel.lezcano at oss.qualcomm.com
Wed Mar 4 11:35:42 PST 2026


On Thu, Feb 05, 2026 at 04:40:37PM +0800, Chen Ni wrote:
> The devm_reset_control_get_optional_exclusive() function may return an
> ERR_PTR in case of genuine reset control acquisition errors, not just
> NULL which indicates the legitimate absence of an optional reset.
> 
> Add an IS_ERR() check after the call in sun5i_timer_probe(). On error,
> return the error code to ensure proper failure handling rather than
> proceeding with invalid pointers.
> 
> Fixes: 7e5bac610d2f ("clocksource/drivers/sun5i: Convert to platform device driver")
> Signed-off-by: Chen Ni <nichen at iscas.ac.cn>
> ---

Applied, thanks



More information about the linux-arm-kernel mailing list