projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
ea1f916
)
Merge tag 'devprop-5.15-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael...
author
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 24 Sep 2021 18:20:29 +0000
(11:20 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 24 Sep 2021 18:20:29 +0000
(11:20 -0700)
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
drivers/base/swnode.c
patch
|
blob
|
history
diff --git
a/drivers/base/swnode.c
b/drivers/base/swnode.c
index
7bd0f3c
..
c46f6a8
100644
(file)
--- a/
drivers/base/swnode.c
+++ b/
drivers/base/swnode.c
@@
-1116,6
+1116,9
@@
int device_create_managed_software_node(struct device *dev,
to_swnode(fwnode)->managed = true;
set_secondary_fwnode(dev, fwnode);
+ if (device_is_registered(dev))
+ software_node_notify(dev);
+
return 0;
}
EXPORT_SYMBOL_GPL(device_create_managed_software_node);