net/mlx4_core: Fix mailbox leak in error flow when performing update qp
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Thu, 8 Oct 2015 14:14:02 +0000 (17:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Oct 2015 14:27:51 +0000 (07:27 -0700)
commita5b3c56ef792009f6aff54ba93bd86ceca3e5bfc
tree24c9fb39c47af96013e0f6f553cea9819f2f5125
parentba4b87aedd7123df4e4cfd1ca4dcfe8a6d756511
net/mlx4_core: Fix mailbox leak in error flow when performing update qp

The procedure mlx4_update_qp leaks mailboxes in its error-flow, fix that.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/qp.c