Thread (4 messages) 4 messages, 3 authors, 2018-02-05

dmaengine: avoid map_cnt overflow with CONFIG_DMA_ENGINE_RAID

From: Vinod Koul <hidden>
Date: 2018-02-05 05:34:54
Also in: lkml

On Mon, Jan 08, 2018 at 10:50:50AM -0500, Zi Yan wrote:
From: Zi Yan <redacted>

When CONFIG_DMA_ENGINE_RAID is enabled, unmap pool size can reach to
256. But in struct dmaengine_unmap_data, map_cnt is only u8, wrapping
to 0, if the unmap pool is maximally used. This triggers BUG() when
struct dmaengine_unmap_data is freed. Use u16 to fix the problem.
Applied, thanks
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help