Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0c0eb4ca authored by Zi Yan's avatar Zi Yan Committed by Vinod Koul
Browse files

dmaengine: avoid map_cnt overflow with CONFIG_DMA_ENGINE_RAID



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.

Signed-off-by: default avatarZi Yan <zi.yan@cs.rutgers.edu>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 7928b2cb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment