[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YlQuaFjt9TxlutRH@matsya>
Date: Mon, 11 Apr 2022 19:04:32 +0530
From: Vinod Koul <vkoul@...nel.org>
To: Xiaomeng Tong <xiam0nd.tong@...il.com>
Cc: ludovic.desroches@...rochip.com, tudor.ambarus@...rochip.com,
linux-arm-kernel@...ts.infradead.org, dmaengine@...r.kernel.org,
linux-kernel@...r.kernel.org, stable@...r.kernel.org
Subject: Re: [PATCH] dma: at_xdmac: fix a missing check on list iterator
On 27-03-22, 14:11, Xiaomeng Tong wrote:
> The bug is here:
> __func__, desc, &desc->tx_dma_desc.phys, ret, cookie, residue);
>
> The list iterator 'desc' will point to a bogus position containing
> HEAD if the list is empty or no element is found. To avoid dev_dbg()
> prints a invalid address, use a new variable 'iter' as the list
> iterator, while use the origin variable 'desc' as a dedicated
> pointer to point to the found element.
Applied, thanks
--
~Vinod
Powered by blists - more mailing lists