mlx4: FIX error flow when initializing EQ table
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Mon, 8 Jun 2009 07:39:58 +0000 (00:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jun 2009 07:39:58 +0000 (00:39 -0700)
commita5b19b635c39fdb819500b0a746b44fe40c9a303
tree454fd8cee549ec12d9abc8604cae826e7b844d9b
parent6f536f403979d37021508c5804509a379d853788
mlx4: FIX error flow when initializing EQ table

If mlx4_create_eq() would fail for one of EQ's assigned for
completion handling, the code would try to free the same EQ
we failed to create.
The crash was found by Christoph Lameter

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