diff options
| author | Wasim Nazir <wasim.nazir@oss.qualcomm.com> | 2026-03-18 14:49:16 +0300 |
|---|---|---|
| committer | Bjorn Andersson <andersson@kernel.org> | 2026-06-09 05:49:26 +0300 |
| commit | ecf9fc18e62c58eae1ceb65dab2bccb8a724de2d (patch) | |
| tree | 7a80d68d615f634d3010b5acfd12a31b1806168d /include/uapi | |
| parent | 6ad61d0acd41044a949e84f96a5f8e02284d350f (diff) | |
| download | linux-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/uapi')
0 files changed, 0 insertions, 0 deletions
