[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20191015101734.GS2654@vkoul-mobl>
Date: Tue, 15 Oct 2019 15:47:34 +0530
From: Vinod Koul <vkoul@...nel.org>
To: Baolin Wang <baolin.wang@...aro.org>
Cc: orsonzhai@...il.com, zhang.lyra@...il.com,
dan.j.williams@...el.com, linux-kernel@...r.kernel.org,
dmaengine@...r.kernel.org, eric.long@...soc.com,
zhenfang.wang@...soc.com
Subject: Re: [PATCH] dmaengine: sprd: Fix the possible memory leak issue
On 09-10-19, 17:11, Baolin Wang wrote:
> If we terminate the channel to free all descriptors associated with this
> channel, we will leak the memory of current descriptor if the current
> descriptor is not completed, since it had been deteled from the desc_issued
> list and have not been added into the desc_completed list.
>
> Thus we should check if current descriptor is completed or not, when freeing
> the descriptors associated with one channel, if not, we should free it to
> avoid this issue.
Applied, thanks
--
~Vinod
Powered by blists - more mailing lists