diff options
| author | 2019-03-18 20:20:12 -0600 | |
|---|---|---|
| committer | 2019-03-20 08:23:18 +0100 | |
| commit | b8585eb51e74034a7c1dd534a667400b8fd58787 (patch) | |
| tree | c22f5d55a83064d23f87da68c152f9dbf9633476 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | staging: mt7621-mmc: Fix BRUST -> BURST typo (diff) | |
staging: mt7621-mmc: Only unmap_sg if mapped
A failure while processing the start command could cause dma_unmap_sg()
to be called without first calling dma_map_sg().
Since calling dma_unmap_sg() is only needed when data != NULL, move the
unmap call into the corresponding if {} block.
Signed-off-by: George Hilliard <thirtythreeforty@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
