aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorJesper Juhl <[email protected]>2011-03-14 04:06:05 -0700
committerJames Bottomley <[email protected]>2011-03-23 11:36:39 -0500
commit872105689eeccbcd77377d6a29f69bba3b0cbe3b (patch)
tree26070e31d489966f6bc86953f410090df03b2eef /tools/perf/scripts/python/check-perf-trace.py
parent5c6cd613196558ba50ba97268b6d225c8d2f56d6 (diff)
[SCSI] target: Avoid mem leak and needless work in transport_generic_get_mem
In drivers/target/target_core_transport.c::transport_generic_get_mem() there are a few potential memory leaks in the error paths. This patch makes sure that we free previously allocated memory when other allocations fail. It also moves some work (INIT_LIST_HEAD() and assignment to se_mem->se_len) below all the allocations so that if something fails we don't do the work at all. Signed-off-by: Jesper Juhl <[email protected]> Signed-off-by: Nicholas A. Bellinger <[email protected]> Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions