diff options
author | Christian Engelmayer <[email protected]> | 2014-01-25 22:47:44 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2014-02-07 15:24:31 -0800 |
commit | d913c7439add288b50752186b306634df2ae21e7 (patch) | |
tree | 12d8572d310a8618f0333190a3fc8fb3f1a13ba8 /tools/perf/util/scripting-engines/trace-event-perl.c | |
parent | d0f2a808b2f0fa6e115cc6f6c84bb4f29aa8af49 (diff) |
misc: genwqe: Fix potential memory leak when pinning memory
Fix a memory leak in the genwqe_pin_mem() error path as called by
ioctl GENWQE_PIN_MEM. In case there is an error encountered when
mapping memory, the already allocated dma_mapping struct needs to
be freed correctly.
Detected by Coverity: CID 1162606.
Signed-off-by: Christian Engelmayer <[email protected]>
Acked-by: Frank Haverkamp <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-perl.c')
0 files changed, 0 insertions, 0 deletions