In the Linux kernel, the following vulnerability has been resolved: gpiolib: fix memory leak in gpiod_set_array_value_complex() EPERM error path 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.
https://git.kernel.org/stable/c/d617afb485c111a15eccb687a724e7fb51898425
https://git.kernel.org/stable/c/d271dafede0f3ed47827c663feacd47da8234224
https://git.kernel.org/stable/c/138d7365c20efe47b4caa92c46f086ec39b81f78