Re: [PATCH v2] gpio: aspeed: Fix potential coprocessor bank map leak

From: Bartosz Golaszewski

Date: Thu Nov 26 2026 - 09:11:20 EST



On Tue, 24 Nov 2026 21:58:32 +0800, Guangshuo Li wrote:
> The coprocessor bank map is allocated lazily but is never freed when
> the GPIO controller is removed. Its only owner is the device-managed
> GPIO private data.
>
> Allocate the map with the controller's managed resources before
> registering the GPIO chip, so chip removal finishes before the map
> is freed. Round up the bank count to cover a partial last bank.
>
> [...]

Applied, thanks!

[1/1] gpio: aspeed: Fix potential coprocessor bank map leak
https://git.kernel.org/brgl/c/f18a4698b0124f77549c23600fa5105bac2951f2

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