diff options
| author | Sven Peter <[email protected]> | 2022-11-14 18:44:47 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-11-22 17:29:25 +0100 |
| commit | 782c70edc4852a5d39be12377a85501546236212 (patch) | |
| tree | dd8715bed87d1d7a1ffe75e113caa2a2fb20e24f /tools/perf/scripts/python/sctop.py | |
| parent | 19c220e9ab00f50edefb9667e3101e84a5112df2 (diff) | |
usb: typec: tipd: Fix spurious fwnode_handle_put in error path
The err_role_put error path always calls fwnode_handle_put to release
the fwnode. This path can be reached after probe itself has already
released that fwnode though. Fix that by moving fwnode_handle_put in the
happy path to the very end.
Fixes: 18a6c866bb19 ("usb: typec: tps6598x: Add USB role switching logic")
Signed-off-by: Sven Peter <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions