Re: [PATCH] dmaengine: pl330: Fix overflow when reporting residue in memcpy

2015-07-06 Thread Vinod Koul
On Mon, Jun 15, 2015 at 05:25:16PM +0900, Krzysztof Kozlowski wrote: > During memcpy operations the residue was always set to an u32 overflowed > value. > > In pl330_tx_status() function number of currently transferred bytes was > subtracted from internal "bytes_requested" field. However this > "b

[PATCH] dmaengine: pl330: Fix overflow when reporting residue in memcpy

2015-06-15 Thread Krzysztof Kozlowski
During memcpy operations the residue was always set to an u32 overflowed value. In pl330_tx_status() function number of currently transferred bytes was subtracted from internal "bytes_requested" field. However this "bytes_requested" was not initialized at start to length of memcpy buffer so transf