net/mlx4_en: Fix double-release-range in tx-rings
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Thu, 25 Oct 2012 01:12:47 +0000 (01:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Oct 2012 07:34:15 +0000 (03:34 -0400)
commit7208ca300725ebc1dd4c60511ed67a69c684eb91
treea7acbbb450d8ba235ae6238b04c789a59ea85e76
parentc6fdd8e5d0c65bb8821dc6da26ee1a2ddd58b3cc
net/mlx4_en: Fix double-release-range in tx-rings

The QP range is reserved as a single block. However, when freeing the
en resources, the tx-ring QPs are released both in mlx4_en_destroy_tx_ring
(one at a time) and in mlx4_en_free_resources (as a block release).

Fix by eliminating the one-at-a-time release in mlx4_en_destroy_tx_ring.

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/en_tx.c