net/mlx4_core: Free ICM table in case of error
authorDotan Barak <dotanb@dev.mellanox.co.il>
Wed, 11 Jul 2012 15:39:32 +0000 (15:39 +0000)
committerRoland Dreier <roland@purestorage.com>
Wed, 11 Jul 2012 16:22:58 +0000 (09:22 -0700)
commit240a9207aae24916dba7070aa7047c3732102cb8
tree5336564c4329ac44ed1271027dcf0c21a467c822
parent87d4abda83a125dec65181a6ecce3035db76d46a
net/mlx4_core: Free ICM table in case of error

In mlx4_init_icm_table(), free the allocated table if we failed to
allocate memory to its entries.

Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
Reviewed-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/net/ethernet/mellanox/mlx4/icm.c