[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240418145730.4605-1-johan+linaro@kernel.org>
Date: Thu, 18 Apr 2024 16:57:28 +0200
From: Johan Hovold <johan+linaro@...nel.org>
To: Bryan O'Donoghue <bryan.odonoghue@...aro.org>,
Heikki Krogerus <heikki.krogerus@...ux.intel.com>
Cc: Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konrad.dybcio@...aro.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Dmitry Baryshkov <dmitry.baryshkov@...aro.org>,
linux-arm-msm@...r.kernel.org,
linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org,
Johan Hovold <johan+linaro@...nel.org>
Subject: [PATCH 0/2] usb: typec: qcom-pmic: fix use-after-free on late probe errors
When reviewing a patch updating the qcom-pmic typec driver, I noticed
that the error handling is broken and can lead to use-after-free.
This series addresses the use-after-free and also fixes the error
handling in the pdphy_start() callback which failed to disable its
supply in all error paths.
The latter fix is not marked for stable on purpose as its not a critical
fix (I'm sure autosel will disagree).
Johan
Johan Hovold (2):
usb: typec: qcom-pmic: fix use-after-free on late probe errors
usb: typec: qcom-pmic: fix pdphy start() error handling
drivers/usb/typec/tcpm/qcom/qcom_pmic_typec.c | 8 ++++++--
drivers/usb/typec/tcpm/qcom/qcom_pmic_typec_pdphy.c | 11 +++++++----
2 files changed, 13 insertions(+), 6 deletions(-)
--
2.43.2
Powered by blists - more mailing lists