Re: [PATCH] hwmon: gpd-fan: Fix error handling in gpd_fan_probe()

From: Guenter Roeck

Date: Sun Oct 12 2025 - 13:58:29 EST


On Fri, Oct 10, 2025 at 01:44:46PM -0700, Harshit Mogalapalli wrote:
> When devm_request_region(0 fails to get a region regrion would be NULL
> and devm_hwmon_device_register_with_info() fails, best to propagate
> the hwmon dev to PTR_ERR() as opposed to region.
>
> Fixes: 0ab88e239439 ("hwmon: add GPD devices sensor driver")
> Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@xxxxxxxxxx>
> Reviewed-by: Cryolitia PukNgae <cryolitia@xxxxxxxxxxxxx>
> ---

Appied after updating the subject.

Thanks,
Guenter