mlx4_core: Fix memory leaks in SR-IOV error paths
authorDotan Barak <dotanb@dev.mellanox.co.il>
Thu, 29 May 2014 13:30:59 +0000 (16:30 +0300)
committerRoland Dreier <roland@purestorage.com>
Fri, 30 May 2014 04:12:58 +0000 (21:12 -0700)
commitb38f2879b7d2d51747de2ea9062c698a6ac64cb1
tree28a4ed7653cbb00160fc8a2b8bc46d28b07a6fc3
parentbfdfcfee3c9281e9cd28c0b08235aba1762504a6
mlx4_core: Fix memory leaks in SR-IOV error paths

Fix a few memory leaks that happen if errors happen in SR-IOV mode.

Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/net/ethernet/mellanox/mlx4/main.c