net/mlx5: Fix error handling in load one
authorMaor Gottlieb <maorg@mellanox.com>
Sun, 31 Dec 2017 09:31:34 +0000 (11:31 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 12 Jan 2018 00:01:47 +0000 (02:01 +0200)
commit259bbc575c5322e0bc675c9a77e937250723c333
tree0c2b0f7eb28e65c284bcdc0d6515cf02ea66c2bd
parent72f36be06138bdc11bdbe1f04e4a3e2637ea438d
net/mlx5: Fix error handling in load one

We didn't store the result of mlx5_init_once, due to that
mlx5_load_one returned success on error.  Fix that.

Fixes: 59211bd3b632 ("net/mlx5: Split the load/unload flow into hardware and software flows")
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c