]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Return the error value in case of command initialization failure
authorEugenia Emantayev <eugenia@mellanox.com>
Wed, 5 Sep 2012 22:50:52 +0000 (22:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Sep 2012 16:55:59 +0000 (12:55 -0400)
commit3f60cad1dd4a514f43bf2bf404c4294b5a5a98a1
tree5459ca02c8b4a95d977bf9af2fff3e13d6bb35f3
parente627ab63813d3951fe175783ad44ef490f018166
net/mlx4_core: Return the error value in case of command initialization failure

If mlx4_cmd_init() failed, the init_one function returned
success, although no resources were opened.

Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c