mlx4_core: Fix cleanup in __mlx4_init_one() error path
authorEli Cohen <eli@mellanox.co.il>
Wed, 6 Jan 2010 20:54:39 +0000 (12:54 -0800)
committerRoland Dreier <rolandd@cisco.com>
Wed, 6 Jan 2010 20:54:39 +0000 (12:54 -0800)
commitb4f77264cd1a858ee09da8dba5a2711a649adbf3
treeb7d0a290ced5c4cb578bb8995d791eb9ba46849f
parent2b946077423270f065013c45d78522a5fb9542ca
mlx4_core: Fix cleanup in __mlx4_init_one() error path

If mlx4_init_port_info() fails, cleanup the initialized ports only.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/net/mlx4/main.c