From: Vinod Koul <vkoul@kernel.org>
To: Brad Kim <brad.kim@sifive.com>
Cc: green.wan@sifive.com, dmaengine@vger.kernel.org,
Brad Kim <brad.kim@semifive.com>
Subject: Re: [PATCH] dmaengine: sf-pdma: Fix an error that calls callback twice
Date: Fri, 11 Sep 2020 17:40:08 +0530 [thread overview]
Message-ID: <20200911121008.GY77521@vkoul-mobl> (raw)
In-Reply-To: <20200903111726.3413-1-brad.kim@sifive.com>
On 03-09-20, 20:17, Brad Kim wrote:
> Because a callback is called twice when DMA transfer complete
> the second callback may be possible to access a freed memory
> if the first callback routines perform the dma_release_channel function.
> So this patch serialized the callback functions
Applied, thanks
--
~Vinod
next prev parent reply other threads:[~2020-09-11 12:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-03 11:17 [PATCH] dmaengine: sf-pdma: Fix an error that calls callback twice Brad Kim
2020-09-11 12:10 ` Vinod Koul [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-08-27 13:33 Brad Kim
[not found] ` <CAJivOr4iT-GZ_CcAHRPp9rjZbOaBXcX6j4KGQH=XuGoArZSnsg@mail.gmail.com>
2020-09-01 3:04 ` Green Wan
2020-09-03 6:22 ` Vinod Koul
2020-08-27 13:27 Brad Kim
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=20200911121008.GY77521@vkoul-mobl \
--to=vkoul@kernel.org \
--cc=brad.kim@semifive.com \
--cc=brad.kim@sifive.com \
--cc=dmaengine@vger.kernel.org \
--cc=green.wan@sifive.com \
/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;
as well as URLs for NNTP newsgroup(s).