Re: [PATCH v2] power: supply: qcom_battmgr: fix use-after-free
From: Sebastian Reichel
Date: Sat Aug 01 2026 - 12:27:25 EST
On Sat, 01 Aug 2026 05:19:23 +0000, Fan Wu wrote:
> qcom_battmgr_pdr_notify() queues enable_work when the PMIC GLINK service
> comes up, and the worker recovers battmgr through container_of() to issue
> firmware requests. The PMIC GLINK client stays on the client list until
> its devres release action runs, so a PDR notification can keep queueing
> the work, and a pending or running worker can access battmgr after devres
> frees it.
>
> [...]
Applied, thanks!
[1/1] power: supply: qcom_battmgr: fix use-after-free
commit: 4e40befedfc8ed86f44e1f81df92d13c149c9f8d
Best regards,
--
Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>