Re: [PATCH] soc: qcom: pmic_glink_altmode: Fix use-after-free of work items on unbind

From: Bjorn Andersson

Date: Sun Nov 08 2026 - 15:24:52 EST



On Mon, 02 Nov 2026 13:07:19 +0200, Abel Vesa wrote:
> The altmode context, including the enable_work and the per-port work
> items, is devm-allocated, but nothing cancels the work items on unbind.
> A PDR or GLINK notification can queue them on the system workqueues, so
> if the device gets unbound while one is pending or running, devres frees
> the context, the typec handles and the pmic_glink client under it, and
> the worker then dereferences freed memory.
>
> [...]

Applied, thanks!

[1/1] soc: qcom: pmic_glink_altmode: Fix use-after-free of work items on unbind
commit: dc95951a6ceb6982eb357bac6a503aacf1e7d105

Best regards,
--
Bjorn Andersson <andersson@xxxxxxxxxx>