Skip to content

Commit fe9f4fe

Browse files
Achiad Shochatdavem330
authored andcommitted
net/mlx5e: Return error in case mlx5e_set_features() fails
In case mlx5e_set_features() fails, return the failure status rather than 0. Signed-off-by: Achiad Shochat <[email protected]> Signed-off-by: Or Gerlitz <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3435ab5 commit fe9f4fe

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1843,7 +1843,7 @@ static int mlx5e_set_features(struct net_device *netdev,
18431843
mlx5e_disable_vlan_filter(priv);
18441844
}
18451845

1846-
return 0;
1846+
return err;
18471847
}
18481848

18491849
static int mlx5e_change_mtu(struct net_device *netdev, int new_mtu)

0 commit comments

Comments
 (0)