Revert "net: esp: cleanup esp_output_tail_tcp() in case of unsupported ESPINTCP"

This reverts commit 520a2c2f7f.
This commit is contained in:
Ksawlii 2024-11-24 00:23:57 +01:00
parent e913a37a4d
commit 72abf1b25d
2 changed files with 4 additions and 2 deletions

View file

@ -239,7 +239,8 @@ static int esp_output_tail_tcp(struct xfrm_state *x, struct sk_buff *skb)
#else
static int esp_output_tail_tcp(struct xfrm_state *x, struct sk_buff *skb)
{
WARN_ON(1);
kfree_skb(skb);
return -EOPNOTSUPP;
}
#endif

View file

@ -255,7 +255,8 @@ static int esp_output_tail_tcp(struct xfrm_state *x, struct sk_buff *skb)
#else
static int esp_output_tail_tcp(struct xfrm_state *x, struct sk_buff *skb)
{
WARN_ON(1);
kfree_skb(skb);
return -EOPNOTSUPP;
}
#endif