From: Vinod Koul <vkoul@kernel.org>
To: Neil Armstrong <neil.armstrong@linaro.org>,
Jyothi Kumar Seerapu <quic_jseerapu@quicinc.com>,
Dmitry Baryshkov <lumag@kernel.org>,
linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org,
linux-kernel@vger.kernel.org,
Krzysztof Kozlowski <krzk@kernel.org>,
Miaoqian Lin <linmq006@gmail.com>
Cc: stable@vger.kernel.org
Subject: Re: [PATCH] dma: qcom: gpi: Fix memory leak in gpi_peripheral_config()
Date: Tue, 23 Dec 2025 16:53:45 +0530 [thread overview]
Message-ID: <176648902567.689692.17832281669717772537.b4-ty@kernel.org> (raw)
In-Reply-To: <20251029123421.91973-1-linmq006@gmail.com>
On Wed, 29 Oct 2025 20:34:19 +0800, Miaoqian Lin wrote:
> Fix a memory leak in gpi_peripheral_config() where the original memory
> pointed to by gchan->config could be lost if krealloc() fails.
>
> The issue occurs when:
> 1. gchan->config points to previously allocated memory
> 2. krealloc() fails and returns NULL
> 3. The function directly assigns NULL to gchan->config, losing the
> reference to the original memory
> 4. The original memory becomes unreachable and cannot be freed
>
> [...]
Applied, thanks!
[1/1] dma: qcom: gpi: Fix memory leak in gpi_peripheral_config()
commit: 2387beefdb3284298e98369bb886584e3abae4ed
Best regards,
--
~Vinod
prev parent reply other threads:[~2025-12-23 11:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-29 12:34 Miaoqian Lin
2025-10-29 15:50 ` Bjorn Andersson
2025-10-29 17:32 ` Markus Elfring
2025-12-23 11:23 ` Vinod Koul [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=176648902567.689692.17832281669717772537.b4-ty@kernel.org \
--to=vkoul@kernel.org \
--cc=dmaengine@vger.kernel.org \
--cc=krzk@kernel.org \
--cc=linmq006@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lumag@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=quic_jseerapu@quicinc.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®