Skip to content

Commit 47d7e65

Browse files
committed
Merge tag 'devprop-5.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull device properties framework fix from Rafael Wysocki: "Fix software node refcount imbalance on device removal (Laurentiu Tudor)" * tag 'devprop-5.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: software node: balance refcount for managed software nodes
2 parents ea1f916 + 5aeb05b commit 47d7e65

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/base/swnode.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,6 +1116,9 @@ int device_create_managed_software_node(struct device *dev,
11161116
to_swnode(fwnode)->managed = true;
11171117
set_secondary_fwnode(dev, fwnode);
11181118

1119+
if (device_is_registered(dev))
1120+
software_node_notify(dev);
1121+
11191122
return 0;
11201123
}
11211124
EXPORT_SYMBOL_GPL(device_create_managed_software_node);

0 commit comments

Comments
 (0)