]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commiteff147a1222092cfded13484b97fb2e780d0e829
treecc85bed1040342b75785fc85fcb013ae0d0e0595
parentd1e261c9d9f4fb2dfdb50a5fb5421038b0e6e772
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