From: Vinod Koul <vinod.koul@intel.com>
To: andrew.liu200917@gmail.com
Cc: dan.j.williams@intel.com, dmaengine@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] edma: free the same memory twice
Date: Thu, 28 Nov 2013 13:41:58 +0530 [thread overview]
Message-ID: <20131128081158.GX8834@intel.com> (raw)
In-Reply-To: <1385139243-5892-1-git-send-email-andrew.liu200917@gmail.com>
On Sat, Nov 23, 2013 at 12:54:03AM +0800, andrew.liu200917@gmail.com wrote:
> From: Andrew Liu <andrew.liu200917@gmail.com>
>
> Signed-off-by: Andrew Liu <andrew.liu200917@gmail.com>
This is already fixed in Linus tree via commit commit b6d5050
--
~Vinod
> ---
> drivers/dma/edma.c | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c
> index bef8a36..04bc1be 100644
> --- a/drivers/dma/edma.c
> +++ b/drivers/dma/edma.c
> @@ -305,7 +305,6 @@ static struct dma_async_tx_descriptor *edma_prep_slave_sg(
> edma_alloc_slot(EDMA_CTLR(echan->ch_num),
> EDMA_SLOT_ANY);
> if (echan->slot[i] < 0) {
> - kfree(edesc);
> dev_err(dev, "Failed to allocate slot\n");
> kfree(edesc);
> return NULL;
> --
> 1.7.9
>
--
prev parent reply other threads:[~2013-11-28 9:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-22 16:54 [PATCH] edma: free the same memory twice andrew.liu200917
2013-11-28 8:11 ` 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=20131128081158.GX8834@intel.com \
--to=vinod.koul@intel.com \
--cc=andrew.liu200917@gmail.com \
--cc=dan.j.williams@intel.com \
--cc=dmaengine@vger.kernel.org \
--cc=linux-kernel@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