Re: [PATCH] gpiolib: fix memory leak in gpiod_set_array_value_complex() EPERM error path

From: Bartosz Golaszewski

Date: Mon Oct 19 2026 - 04:02:08 EST



On Fri, 16 Oct 2026 18:54:42 +0800, Kent Gibson wrote:
> A drive-by review by Sashiko reports that, where the line has not been
> configured as an output, gpiod_set_array_value_complex() can return
> without freeing potentially alloced bitmaps, thus leaking memory.
>
> Cleanup the bitmaps before returning.
>
>
> [...]

Applied, thanks!

[1/1] gpiolib: fix memory leak in gpiod_set_array_value_complex() EPERM error path
https://git.kernel.org/brgl/c/138d7365c20efe47b4caa92c46f086ec39b81f78

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