mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-19 02:54:00 +08:00
mlx5: Return -EINVAL when WARN_ON_ONCE triggers in mlx5e_tls_resync().
Return value was changes to 'int' from void but this return statement
was not updated, or it slipped in via a merge.
Fixes: b5d9a834f4
("net/tls: don't clear TX resync flag on error")
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
08cc83cc7f
commit
cacf32e997
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user