summaryrefslogtreecommitdiff
path: root/include/linux/memory
diff options
context:
space:
mode:
authorWasim Nazir <wasim.nazir@oss.qualcomm.com>2026-03-18 14:49:16 +0300
committerBjorn Andersson <andersson@kernel.org>2026-06-09 05:49:26 +0300
commitecf9fc18e62c58eae1ceb65dab2bccb8a724de2d (patch)
tree7a80d68d615f634d3010b5acfd12a31b1806168d /include/linux/memory
parent6ad61d0acd41044a949e84f96a5f8e02284d350f (diff)
downloadlinux-ecf9fc18e62c58eae1ceb65dab2bccb8a724de2d.tar.xz
remoteproc: qcom: Fix leak when custom dump_segments addition fails
Free allocated minidump_region 'name' in qcom_add_minidump_segments() when failing before adding the region to 'dump_segments'. Otherwise, the 'name' is not tracked and is never freed by qcom_minidump_cleanup(). Return error when adding to 'dump_segments' fails. Cc: stable@vger.kernel.org # v5.11 Fixes: 8ed8485c4f05 ("remoteproc: qcom: Add capability to collect minidumps") Reviewed-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com> Signed-off-by: Wasim Nazir <wasim.nazir@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260318-rproc-memleak-v2-1-ade70ab858f2@oss.qualcomm.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'include/linux/memory')
0 files changed, 0 insertions, 0 deletions