Driver core fixes for 7.1-rc5
Danilo Krummrich
maintainerHi Linus,
Please pull these driver-core fixes.
Thanks,
Danilo
The following changes since commit 254f49634ee16a731174d2ae34bc50bd5f45e731:
Linux 7.1-rc1 (2026-04-26 14:19:00 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/driver-core/driver-core.git tags/driver-core-7.1-rc5
for you to fetch changes up to 215c90ee656114f5e8c32408228d97082f8e0eef:
device property: set fwnode->secondary to NULL in fwnode_init() (2026-05-22 12:24:08 +0200)
----------------------------------------------------------------
Driver core fixes for 7.1-rc5
- Remove the software node on platform device release(); without this, the software node remains registered after the device is gone and a subsequent platform_device_register_full() reusing the same node fails with -EBUSY
- In sysfs_update_group(), do not remove a pre-existing directory when create_files() fails; the previous code would silently destroy a sysfs group that the caller did not create
- Set fwnode->secondary to NULL in fwnode_init() to avoid dereferencing uninitialized memory (e.g. in dev_to_swnode()) when the firmware node is allocated on the stack or via a non-zeroing allocator
----------------------------------------------------------------
Bartosz Golaszewski (2):
driver core: platform: remove software node on release() device property: set fwnode->secondary to NULL in fwnode_init()
Greg Kroah-Hartman (1):
sysfs: don't remove existing directory on update failure
drivers/base/platform.c | 16 +++++++++++++++- fs/sysfs/group.c | 2 +- include/linux/fwnode.h | 1 + 3 files changed, 17 insertions(+), 2 deletions(-)
The pull request you sent on Sat, 23 May 2026 15:10:04 +0200:
The pull request you sent on Sat, 23 May 2026 15:10:04 +0200:
Quoted 1 line
git://git.kernel.org/pub/scm/linux/kernel/git/driver-core/driver-core.gittags/driver-core-7.1-rc5
has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/c8561c73b4a8669bb13c57a5853318cd02655f9b
Thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/prtracker.html