diff options
author | Bastien Curutchet <bastien.curutchet@bootlin.com> | 2025-08-20 16:21:13 +0200 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2025-10-01 10:28:37 +0100 |
commit | 5f4bbee069836e51ed0b6d7e565a292f070ababc (patch) | |
tree | c21120c62232c9b5dd291ef912de6958f590d0ca /tools/docs/parse-headers.py | |
parent | 8a498184e2e8aac24db0faf295b7d0fb62dfe90d (diff) |
mfd: core: Increment of_node's refcount before linking it to the platform device
When an MFD device is added, a platform_device is allocated. If this
device is linked to a DT description, the corresponding OF node is linked
to the new platform device but the OF node's refcount isn't incremented.
As of_node_put() is called during the platform device release, it leads
to a refcount underflow.
Call of_node_get() to increment the OF node's refcount when the node is
linked to the newly created platform device.
Signed-off-by: Bastien Curutchet <bastien.curutchet@bootlin.com>
Link: https://lore.kernel.org/r/20250820-mfd-refcount-v1-1-6dcb5eb41756@bootlin.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'tools/docs/parse-headers.py')
0 files changed, 0 insertions, 0 deletions