Re: [PATCH] soc: qcom: smem: fix hwspinlock resource leak in probe error paths

From: Bjorn Andersson

Date: Thu Oct 30 2025 - 12:22:50 EST



On Wed, 29 Oct 2025 10:27:33 +0800, Haotian Zhang wrote:
> The hwspinlock acquired via hwspin_lock_request_specific() is not
> released on several error paths. This results in resource leakage
> when probe fails.
>
> Switch to devm_hwspin_lock_request_specific() to automatically
> handle cleanup on probe failure. Remove the manual hwspin_lock_free()
> in qcom_smem_remove() as devm handles it automatically.
>
> [...]

Applied, thanks!

[1/1] soc: qcom: smem: fix hwspinlock resource leak in probe error paths
commit: dc5db35073a19f6d3c30bea367b551c1a784ef8f

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