Re: [PATCH v3] gpio: regmap: Fix memleak in gpio_remap_register

From: Andy Shevchenko

Date: Thu Dec 04 2025 - 07:09:28 EST


On Thu, Dec 04, 2025 at 06:13:04PM +0800, Wentao Guan wrote:
> We should call gpiochip_remove(chip) to free the resource
> alloced by gpiochip_add_data(chip, gpio) after the err path.

Thanks, LGTM now
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>

--
With Best Regards,
Andy Shevchenko