Re: [PATCH v2] gpio: regmap: Fix memleak in gpio_remap_register
From: Andy Shevchenko
Date: Wed Dec 03 2025 - 09:50:54 EST
On Wed, Dec 03, 2025 at 10:15:58PM +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.
> Fixes: 553b75d4bfe9 ("gpio: regmap: Allow to allocate regmap-irq device")
As I told in v1, add the other Fixes tag, to show that the code was modified
and this change has a dependency to that.
...
With that done, it LGTM.
--
With Best Regards,
Andy Shevchenko