diff options
| author | Vitaly Kuznetsov <[email protected]> | 2016-05-30 13:00:54 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2016-05-31 21:10:34 +0000 |
| commit | bae5499cc55d2329ea0fbf09cb22298f4ca2f9bd (patch) | |
| tree | 3b751f3b323264584adf7b07a4c24ba16a454a99 /scripts/gdb/vmlinux-gdb.py | |
| parent | fou: fix IPv6 Kconfig options (diff) | |
| download | kernel-bae5499cc55d2329ea0fbf09cb22298f4ca2f9bd.tar.gz kernel-bae5499cc55d2329ea0fbf09cb22298f4ca2f9bd.zip | |
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 'scripts/gdb/vmlinux-gdb.py')
0 files changed, 0 insertions, 0 deletions
