diff options
author | Bart Van Assche <[email protected]> | 2016-05-12 10:48:13 -0700 |
---|---|---|
committer | Doug Ledford <[email protected]> | 2016-05-13 13:37:21 -0400 |
commit | 9d8e7d0dacf09ddac7e617d17dbeec6af56e81e8 (patch) | |
tree | e94611ab63aeeafd2fae69089178d136a9bb5cfa /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | cf1acab7d75652a372ee5b9c996689d518914e83 (diff) |
IB/srp: Fix a memory descriptor leak in an error path
If an error occurs after srp_fr_pool_get() succeeded and before the
descriptor is stored in srp_map_state (*state->fr.next++ = desc)
then srp_unmap_data() won't free the newly allocated memory
descriptor. Hence free the descriptor explicitly.
Fixes: f7f7aab1a5c0 ("IB/srp: Convert to new registration API")
Signed-off-by: Bart Van Assche <[email protected]>
Tested-by: Laurence Oberman <[email protected]>
Cc: Sagi Grimberg <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Cc: <[email protected]> # v4.4+
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions