diff options
author | Javier Carrasco <[email protected]> | 2024-10-20 14:56:35 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-10-29 04:28:33 +0100 |
commit | b8423a2f5814dbf055ed7c41f25bfe91c2066cbe (patch) | |
tree | f6fb42fe75badcd2808e1993f6202cd1400552b7 /scripts/gdb/linux/timerlist.py | |
parent | 7f02b8a5b602098f2901166e7e4d583acaed872a (diff) |
usb: typec: qcom-pmic-typec: fix missing fwnode removal in error path
If drm_dp_hpd_bridge_register() fails, the probe function returns
without removing the fwnode via fwnode_handle_put(), leaking the
resource.
Jump to fwnode_remove if drm_dp_hpd_bridge_register() fails to remove
the fwnode acquired with device_get_named_child_node().
Cc: [email protected]
Fixes: 7d9f1b72b296 ("usb: typec: qcom-pmic-typec: switch to DRM_AUX_HPD_BRIDGE")
Signed-off-by: Javier Carrasco <[email protected]>
Reviewed-by: Dmitry Baryshkov <[email protected]>
Acked-by: Bryan O'Donoghue <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Link: https://lore.kernel.org/r/20241020-qcom_pmic_typec-fwnode_remove-v2-2-7054f3d2e215@gmail.com
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions