Skip to content

Commit

Permalink
mlx5: Return -EINVAL when WARN_ON_ONCE triggers in mlx5e_tls_resync().
Browse files Browse the repository at this point in the history
Return value was changes to 'int' from void but this return statement
was not updated, or it slipped in via a merge.

Fixes: b5d9a83 ("net/tls: don't clear TX resync flag on error")
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jul 10, 2019
1 parent 08cc83c commit cacf32e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ static int mlx5e_tls_resync(struct net_device *netdev, struct sock *sk,
u64 rcd_sn = *(u64 *)rcd_sn_data;

if (WARN_ON_ONCE(direction != TLS_OFFLOAD_CTX_DIR_RX))
return;
return -EINVAL;
rx_ctx = mlx5e_get_tls_rx_context(tls_ctx);

netdev_info(netdev, "resyncing seq %d rcd %lld\n", seq,
Expand Down

0 comments on commit cacf32e

Please sign in to comment.