diff options
author | Zi Yan <zi.yan@cs.rutgers.edu> | 2018-01-08 18:50:50 +0300 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2018-02-12 06:48:56 +0300 |
commit | 0c0eb4caf03bb6d3d92c70560e0530c8fdf62284 (patch) | |
tree | 165300d7a57375dddcf52d8f9049a33797981949 /drivers/hv/connection.c | |
parent | 7928b2cbe55b2a410a0f5c1f154610059c57b1b2 (diff) | |
download | linux-0c0eb4caf03bb6d3d92c70560e0530c8fdf62284.tar.xz |
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: Zi Yan <zi.yan@cs.rutgers.edu>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/hv/connection.c')
0 files changed, 0 insertions, 0 deletions