[GIT PULL] Driver core fixes for 7.1-rc5
From: Danilo Krummrich
Date: Sat May 23 2026 - 09:10:17 EST
Hi 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(-)