[GIT PULL] gpio fixes for v7.0-rc2

From: Bartosz Golaszewski

Date: Fri Feb 27 2026 - 03:48:25 EST


Linus,

Please pull the following set of GPIO fixes for the next RC.

Thanks,
Bartosz

The following changes since commit 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f:

Linux 7.0-rc1 (2026-02-22 13:18:59 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux.git tags/gpio-fixes-for-v7.0-rc2

for you to fetch changes up to ec2cceadfae72304ca19650f9cac4b2a97b8a2fc:

gpiolib: normalize the return value of gc->get() on behalf of buggy drivers (2026-02-23 11:49:23 +0100)

----------------------------------------------------------------
gpio fixes for v7.0-rc2

- fix memory leaks in shared GPIO management
- normalize the return values of gpio_chip::get() in GPIO core on behalf
of drivers that return invalid values (this is done because adding
stricter sanitization of callback retvals led to breakages in existing
users, we'll revert that once all are fixed)

----------------------------------------------------------------
Bartosz Golaszewski (1):
gpiolib: normalize the return value of gc->get() on behalf of buggy drivers

Daniel J Blueman (1):
gpio: shared: fix memory leaks

drivers/gpio/gpiolib-shared.c | 6 +++---
drivers/gpio/gpiolib.c | 8 ++++++--
2 files changed, 9 insertions(+), 5 deletions(-)