From: Herbert Xu Date: Mon, 23 May 2005 20:11:07 +0000 (-0700) Subject: [IPV6]: Fix xfrm tunnel oops with large packets X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=180e42503300629692b513daeb55a6bb0b51500c;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [IPV6]: Fix xfrm tunnel oops with large packets Signed-off-by: Herbert Xu Acked-by: Hideaki YOSHIFUJI Signed-off-by: David S. Miller --- diff --git a/net/ipv6/xfrm6_output.c b/net/ipv6/xfrm6_output.c index 601a148f60f3..6b9867717d11 100644 --- a/net/ipv6/xfrm6_output.c +++ b/net/ipv6/xfrm6_output.c @@ -84,6 +84,7 @@ static int xfrm6_tunnel_check_size(struct sk_buff *skb) mtu = IPV6_MIN_MTU; if (skb->len > mtu) { + skb->dev = dst->dev; icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu, skb->dev); ret = -EMSGSIZE; }