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

From: Bartosz Golaszewski

Date: Fri Dec 05 2025 - 03:33:15 EST



On Thu, 04 Dec 2025 18:13:04 +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.
>
>

Fixed typos, reworked the commit message and queued for fixes.

[1/1] gpio: regmap: Fix memleak in gpio_remap_register
https://git.kernel.org/brgl/linux/c/52721cfc78c76b09c66e092b52617006390ae96a

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>