Re: [PATCH v2] soc: qcom: cmd-db: Use devm_memremap() to fix memory leak in cmd_db_dev_probe

From: Bjorn Andersson

Date: Sat Jan 10 2026 - 14:11:41 EST



On Tue, 16 Dec 2025 09:39:32 +0800, Haotian Zhang wrote:
> If cmd_db_magic_matches() fails after memremap() succeeds, the function
> returns -EINVAL without unmapping the memory region, causing a
> potential resource leak.
>
> Switch to devm_memremap to automatically manage the map resource.
>
>
> [...]

Applied, thanks!

[1/1] soc: qcom: cmd-db: Use devm_memremap() to fix memory leak in cmd_db_dev_probe
commit: 0da7824734d8d83e6a844dd0207f071cb0c50cf4

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