]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: fix error return code in mlx5e_tc_nic_init()
authorWang Hai <wanghai38@huawei.com>
Sat, 14 Nov 2020 11:52:23 +0000 (19:52 +0800)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 17 Nov 2020 19:50:54 +0000 (11:50 -0800)
commit8e5038b408bcf270d775a6d8920bc299ed313cad
treedf19fc020aa20245f169f06b604a410a2c5aa912
parent8d0894b528c79c92296d9012e262d965ef52c851
net/mlx5: fix error return code in mlx5e_tc_nic_init()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: 642909ae8ead ("net/mlx5e: Support CT offload for tc nic flows")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c