[PATCH phy-next] phy: apple: apple: Check the actual ioremap return value

Sven Peter sven at kernel.org
Mon Feb 9 08:46:20 PST 2026


On 07.02.26 17:40, Janne Grunau wrote:
> The address where the devm_ioremap_resource() return value is stored is
> always a valid pointer. Check the actual return value instead as that
> that might be an error value.
> 
> Reported-by: Dan Carpenter <dan.carpenter at linaro.org>
> Closes: https://lore.kernel.org/asahi/aYXvX1bYOXtYCgfC@stanley.mountain/
> Fixes: 8e98ca1e74db ("phy: apple: Add Apple Type-C PHY")
> Signed-off-by: Janne Grunau <j at jannau.net>
> ---

Reviewed-by: Sven Peter <sven at kernel.org>


Thanks,


Sven





More information about the linux-phy mailing list