diff --git a/net/ipv4/esp4.c b/net/ipv4/esp4.c index 917d991bf..76a73d8ee 100755 --- a/net/ipv4/esp4.c +++ b/net/ipv4/esp4.c @@ -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 diff --git a/net/ipv6/esp6.c b/net/ipv6/esp6.c index a628c7561..140e6923c 100755 --- a/net/ipv6/esp6.c +++ b/net/ipv6/esp6.c @@ -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