Commit 9581acb
usb: typec: fix unreleased fwnode_handle in typec_port_register_altmodes()
The 'altmodes_node' fwnode_handle is never released after it is no
longer required, which leaks the resource.
Add the required call to fwnode_handle_put() when 'altmodes_node' is no
longer required.
Cc: [email protected]
Fixes: 7b458a4 ("usb: typec: Add typec_port_register_altmodes()")
Reviewed-by: Heikki Krogerus <[email protected]>
Signed-off-by: Javier Carrasco <[email protected]>
Link: https://lore.kernel.org/r/20241021-typec-class-fwnode_handle_put-v2-1-3281225d3d27@gmail.com
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent b8423a2 commit 9581acb
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2341 | 2341 | | |
2342 | 2342 | | |
2343 | 2343 | | |
| 2344 | + | |
2344 | 2345 | | |
2345 | 2346 | | |
2346 | 2347 | | |
| |||
0 commit comments