diff options
author | 2017-04-27 14:21:41 +0200 | |
---|---|---|
committer | 2017-05-01 15:51:06 +0530 | |
commit | fbfb8e1dcea0508f203535a92faea7a3ddf24558 (patch) | |
tree | bdeb3cc033b92a8abdd8b3c135780b3d0e055252 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dmaengine: dmatest: Select DMA_ENGINE_RAID as its needed for the slave_sg test (diff) | |
download | wireguard-linux-fbfb8e1dcea0508f203535a92faea7a3ddf24558.tar.xz wireguard-linux-fbfb8e1dcea0508f203535a92faea7a3ddf24558.zip |
dmaengine: dmatest: Add check for supported buffer count (sg_buffers)
When using dmatest with sg_buffers=128 I stumbled upon the problem, that
the "map_cnt" variable of "struct dmaengine_unmap_data" was set to 0.
"map_cnt" is an "u8" variable, resulting in an overrun when its
value is set to src_cnt + dst_cnt, to twice the sg_buffer value.
This patch adds a small check to dmatest, so that this confusing error
is detected and the test is aborted.
Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Kedareswara rao Appana <appanad@xilinx.com>
Cc: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions