Re: [PATCH] leds: netxbig: fix GPIO descriptor leak in error paths

From: Markus Elfring

Date: Wed Oct 29 2025 - 08:55:24 EST



> Add goto-based error handling to release all acquired GPIOs before
> returning errors.

I propose to move the statement “ret = PTR_ERR(gpiod);” behind
an additional label.

Regards,
Markus