[GIT PULL] gpio fixes for v7.4-rc6
From: Bartosz Golaszewski
Date: Thu Dec 03 2026 - 09:14:44 EST
Linus,
Please pull the following set of GPIO fixes for the next RC.
All the commits have spent time in linux-next, several appear as commited
today because I needed to rebase when doing the PR after I noticed one of
the SoBs was messed up and needed to be fixed.
Thanks,
Bartosz
The following changes since commit fe6ff8d5d675c01793b9f051d16055dd4aa75244:
Linux 7.4-rc5 (2026-11-29 14:20:14 -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.4-rc6
for you to fetch changes up to f4379936003e4a233ed8d7b8ab299630bae85fec:
gpio: pxa: Publish the legacy IRQ domain after GPIO setup succeeds (2026-12-03 11:26:10 +0100)
----------------------------------------------------------------
gpio fixes for v7.4-rc6
GPIO core fixes:
- fix a memory leak in GPIO sysfs unexport path
- avoid undersized array bitmap in GPIO get value fastpath
GPIO driver fixes:
- fix GPIO chip leaks in unbind path in gpio-sifive and gpio-xlp
- don't allow atomic operations on sleeping chips in gpio-virtuser
- fix the device name displayed for gpio-virtuser devices before they're
active
- fix one-byte overflow in lookup entry show callback in gpio-virtuser
- fix UAF bug in unbind path in gpio-loongson
- fix init ordering in gpio-mxc
- only publish the legacy IRQ domain after GPIO setup succeeds in
gpio-pxa
- only update the GPIOLIB's IRQ state when the line is actually reserved
as interrupt in gpio-ep93xx
----------------------------------------------------------------
Alexander Sverdlin (1):
gpio: ep93xx: skip IRQ state update before resource request
Arun Iyengar (1):
gpio: sysfs: free the chip attribute group name on unexport
Baek Kyu, Kim (1):
gpio: avoid undersized array bitmap in get fastpath
Lin Tzu Yang (3):
gpio: virtuser: fix one-byte overflow in lookup entry key show
gpio: virtuser: refuse the atomic attributes for lines that can sleep
gpio: virtuser: report the right dev_name before the device is live
Tian Xuechen (5):
gpio: mxc: Register syscore callbacks after the platform driver
gpio: loongson: Fix potential use-after-free on unbind
gpio: sifive: Unregister the GPIO chip on unbind
gpio: xlp: Unregister the GPIO chip on unbind
gpio: pxa: Publish the legacy IRQ domain after GPIO setup succeeds
drivers/gpio/gpio-ep93xx.c | 3 ++-
drivers/gpio/gpio-loongson.c | 2 +-
drivers/gpio/gpio-mxc.c | 9 +++++++--
drivers/gpio/gpio-pxa.c | 25 ++++++++++++++++++-------
drivers/gpio/gpio-sifive.c | 2 +-
drivers/gpio/gpio-virtuser.c | 37 +++++++++++++++++++++++++++++++++++--
drivers/gpio/gpio-xlp.c | 2 +-
drivers/gpio/gpiolib-sysfs.c | 1 +
drivers/gpio/gpiolib.c | 1 +
9 files changed, 67 insertions(+), 15 deletions(-)