diff options
| author | 2026-09-01 15:20:54 +0530 | |
|---|---|---|
| committer | 2026-09-23 14:44:31 +0200 | |
| commit | 4a86249c87ec07c0fa89671c39f7b3c1075394fc (patch) | |
| tree | 49729b9b6c52533e2640010be30ae11abd1dc430 /scripts/Makefile.thinlto | |
| parent | serial: qcom-geni: Fix port_ida handling for console and probe errors (diff) | |
serial: qcom-geni: Avoid double-free of PM domain list
The SA8255P UART variants attach PM domains through
devm_pm_domain_attach_list(), which registers a devres cleanup action
to detach and free the PM domain list automatically on probe failure
or device removal.
Remove the manual dev_pm_domain_detach_list() calls from the probe
error path and remove callback. These calls can operate on memory
that has already been freed by the devres-managed cleanup, resulting
in a potential double-free. Also remove the unused pm_domain.h header.
Suggested-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Aniket Randive <aniket.randive@oss.qualcomm.com>
Reviewed-by: Praveen Talari <praveen.talari@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com>
Link: https://patch.msgid.link/20260901-probe_cleanup_uart-v1-1-0bc2b00c970e@oss.qualcomm.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
