summaryrefslogtreecommitdiffstats
path: root/drivers/net/virtio_net.c
diff options
context:
space:
mode:
authorVitaly Kuznetsov2016-05-30 15:00:54 +0200
committerDavid S. Miller2016-05-31 23:10:34 +0200
commitbae5499cc55d2329ea0fbf09cb22298f4ca2f9bd (patch)
tree3b751f3b323264584adf7b07a4c24ba16a454a99 /drivers/net/virtio_net.c
parentfou: fix IPv6 Kconfig options (diff)
downloadkernel-qcow2-linux-bae5499cc55d2329ea0fbf09cb22298f4ca2f9bd.tar.gz
kernel-qcow2-linux-bae5499cc55d2329ea0fbf09cb22298f4ca2f9bd.tar.xz
kernel-qcow2-linux-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 <vkuznets@redhat.com> Acked-by: Yuval Mintz <Yuval.Mintz@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/virtio_net.c')
0 files changed, 0 insertions, 0 deletions