]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4_en: Fix error handling while activating RX rings
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Mon, 20 Apr 2009 04:24:28 +0000 (04:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Apr 2009 08:47:03 +0000 (01:47 -0700)
commit0ee23d6dd0a6b307ad5ed9a1d5bd7f79e4bd2126
tree12acfcdca721ebbacf3b9f75cbb425f8fee7576e
parent63ba4215bca004951c37aecb4ffd6667ef232d29
mlx4_en: Fix error handling while activating RX rings

In case of failure of either srq creation or page allocation,
the cleanup code handled the failed ring as well, and tried
to destroy resources that where not allocated.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mlx4/en_rx.c