diff options
author | Vitaly Kuznetsov <[email protected]> | 2016-05-30 15:00:54 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2016-05-31 14:10:34 -0700 |
commit | bae5499cc55d2329ea0fbf09cb22298f4ca2f9bd (patch) | |
tree | 3b751f3b323264584adf7b07a4c24ba16a454a99 /tools/perf/util/trace-event-scripting.c | |
parent | 95e4daa82086e2bd7b7163f33a4f455bf8ecdf48 (diff) |
bnx2x: avoid leaking memory on bnx2x_init_one() failures
bnx2x_init_bp() allocates memory with bnx2x_alloc_mem_bp() so if we
fail later in bnx2x_init_one() we need to free this memory
with bnx2x_free_mem_bp() to avoid leakages. E.g. I'm observing memory
leaks reported by kmemleak when a failure (unrelated) happens in
bnx2x_vfpf_acquire().
Signed-off-by: Vitaly Kuznetsov <[email protected]>
Acked-by: Yuval Mintz <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions