vxge: fix memory leak in vxge_alloc_msix() error path
authorMichal Schmidt <mschmidt@redhat.com>
Thu, 24 Jun 2010 04:13:44 +0000 (04:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Jun 2010 05:10:04 +0000 (22:10 -0700)
commitcc413d9097dfc6237f37dcaf52346db1061a6119
treecc85bed1040342b75785fc85fcb013ae0d0e0595
parent1b4843c5e8cbab86830da8a53b8288882060c059
vxge: fix memory leak in vxge_alloc_msix() error path

When pci_enable_msix() returned ret<0, entries and vxge_entries were leaked.
While at it, use the centralized exit idiom in the function.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Acked-by: Ram Vepa <ram.vepa@exar.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxge/vxge-main.c