aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorGeorge Hilliard <[email protected]>2019-03-20 16:42:05 -0600
committerGreg Kroah-Hartman <[email protected]>2019-03-22 15:20:27 +0100
commitd4223e06b6aed581625f574ad8faa71b6c0fc903 (patch)
tree9aca063aaf039002068227fad2d08ba1a024c363 /tools/perf/scripts/python
parentf2778bb3cb6c7544578c45688f3d5bcb09e0ac87 (diff)
staging: mt7621-mmc: Check for nonzero number of scatterlist entries
The buffer descriptor setup loop is correct only if it is setting up at least one bd struct. Besides, there is an error if dma_map_sg() returns 0, which is possible and must be handled. Additionally, remove the BUG_ON() checking sglen, which is unnecessary because we configure DMA with that constraint during init. Signed-off-by: George Hilliard <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions