aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSouptick Joarder <[email protected]>2020-07-01 11:47:44 +0530
committerGreg Kroah-Hartman <[email protected]>2020-07-01 15:44:26 +0200
commit95154990a7ae05cef093459b0dd038f12dcd7034 (patch)
tree34e81b1d040d6733e7ac0e0ff0624ad041ff8e6c /tools/perf/scripts/python
parentab7abbcac07e8d040514e0bd93e9ead30ca3a114 (diff)
staging: kpc2000: kpc_dma: Remove additional goto statements
As 3 goto level referring to same common code, those can be accomodated with a single goto level and renameing it to unpin_pages. Set the -ERRNO when returning partial mapped pages in more appropriate place. When dma_map_sg() failed, the previously allocated memory was not freed properly. This is corrected now. Signed-off-by: Souptick Joarder <[email protected]> Cc: John Hubbard <[email protected]> Cc: Bharath Vedartham <[email protected]> Cc: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions