Re: [PATCH] hwmon: (corsair-psu) Close HID device on probe errors

From: Guenter Roeck

Date: Thu Apr 30 2026 - 14:21:00 EST


On Fri, Apr 24, 2026 at 10:50:51PM +0900, Myeonghun Pak wrote:
> corsairpsu_probe() opens the HID device before sending the device init
> and firmware-info commands. If either command fails, the error path jumps
> directly to fail_and_stop and skips hid_hw_close().
>
> Use the existing fail_and_close label for those post-open failures so the
> open count and low-level close callback are balanced before hid_hw_stop().
>
> Fixes: d115b51e0e56 ("hwmon: add Corsair PSU HID controller driver")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Myeonghun Pak <mhun512@xxxxxxxxx>
> Reviewed-by: Wilken Gottwalt <wilken.gottwalt@xxxxxxxxxx>

Applied.

Thanks,
Guenter