]> Git Repo - linux.git/commit
usb: typec: qcom-pmic: fix use-after-free on late probe errors
authorJohan Hovold <[email protected]>
Thu, 18 Apr 2024 14:57:29 +0000 (16:57 +0200)
committerGreg Kroah-Hartman <[email protected]>
Tue, 23 Apr 2024 23:28:19 +0000 (16:28 -0700)
commitd80eee97cb4e90768a81c856ac71d721996d86b7
tree7690124b666050d2b7e04dc7a281f991c520f476
parent0aea736ddb877b93f6d2dd8cf439840d6b4970a9
usb: typec: qcom-pmic: fix use-after-free on late probe errors

Make sure to stop and deregister the port in case of late probe errors
to avoid use-after-free issues when the underlying memory is released by
devres.

Fixes: a4422ff22142 ("usb: typec: qcom: Add Qualcomm PMIC Type-C driver")
Cc: [email protected] # 6.5
Cc: Bryan O'Donoghue <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Reviewed-by: Dmitry Baryshkov <[email protected]>
Reviewed-by: Bryan O'Donoghue <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c
This page took 0.058346 seconds and 4 git commands to generate.