Re: [PATCH] soc: qcom: llcc-qcom: Unregister the EDAC device on unbind
From: Bjorn Andersson
Date: Fri Dec 04 2026 - 18:38:25 EST
On Thu, 03 Dec 2026 03:15:46 +0800, Yige Jiang wrote:
> qcom_llcc_probe() registers the qcom_llcc_edac platform device but
> keeps the returned pointer only in a local variable. Nothing unregisters
> the child when the LLCC driver is unbound.
>
> The child's platform data contains pointers to the LLCC device's
> managed regmaps. Those are freed on unbind while the EDAC device
> remains bound, so its polling work or interrupt handler can access
> freed memory. The remaining child also prevents its replacement from
> being registered on a subsequent bind.
>
> [...]
Applied, thanks!
[1/1] soc: qcom: llcc-qcom: Unregister the EDAC device on unbind
commit: 1e5bbf63105d0b367efc6df0bf87c7fde0f91995
Best regards,
--
Bjorn Andersson <andersson@xxxxxxxxxx>