diff options
| author | Kent Gibson <warthog618@gmail.com> | 2026-10-16 18:54:42 +0800 |
|---|---|---|
| committer | Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> | 2026-10-19 10:01:00 +0200 |
| commit | 138d7365c20efe47b4caa92c46f086ec39b81f78 (patch) | |
| tree | 815dd0721537fc3eb88688d0b853d707346e2c4b /tools/lib/python | |
| parent | 5a088d1b7266249e7701a94fc90fc829d1ad5ba1 (diff) | |
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.
Fixes: 92ac7de3175e ("gpiolib: don't allow setting values on input lines")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Link: https://lore.kernel.org/linux-gpio/sashiko-outbox-168233@kernel.org/
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Link: https://patch.msgid.link/20261016105442.109836-1-warthog618@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
