dmaengine: mv_xor: Fix incorrect offset in dma_map_page()
Upon booting, I occasionally spotted some BUGs triggered by the internal
DMA test routine executed upon driver probing. This was detected by
SLUB_DEBUG ("Freechain corrupt" or "Redzone overwritten"). Tracking
this down located a problem in passing 0 as offset in dma_map_page().
As kmalloc, especially when used with SLUB_DEBUG, may return a non page
This patch fixes this issue by passing the correct offset in
Tested on a custom Armada XP board.
Signed-off-by: Stefan Roese <firstname.lastname@example.org>
Cc: Thomas Petazzoni <email@example.com>
Cc: Gregory CLEMENT <firstname.lastname@example.org>
Cc: Marcin Wojtas <email@example.com>
Signed-off-by: Vinod Koul <firstname.lastname@example.org>
1 file changed