summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorVitaly Kuznetsov <vkuznets@redhat.com>2016-05-30 15:00:54 +0200
committerDavid S. Miller <davem@davemloft.net>2016-05-31 14:10:34 -0700
commitbae5499cc55d2329ea0fbf09cb22298f4ca2f9bd (patch)
tree3b751f3b323264584adf7b07a4c24ba16a454a99 /block
parent95e4daa82086e2bd7b7163f33a4f455bf8ecdf48 (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 <vkuznets@redhat.com> Acked-by: Yuval Mintz <Yuval.Mintz@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions