]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitec1e6c1c09cdcb4d769ca353997f6a2c99de7cd2
tree0c2b0f7eb28e65c284bcdc0d6515cf02ea66c2bd
parent048280b243bc1ee43af959a8e8880905028b859c
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: a80765cc8d4f ("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