From: Duan Jiong Date: Wed, 18 Sep 2013 12:03:27 +0000 (+0800) Subject: net:dccp: do not report ICMP redirects to user space X-Git-Tag: v4.0~3237^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd784a140712fd06674f2240eecfc4ccae421129;p=platform%2Fkernel%2Flinux-amlogic.git net:dccp: do not report ICMP redirects to user space DCCP shouldn't be setting sk_err on redirects as it isn't an error condition. it should be doing exactly what tcp is doing and leaving the error handler without touching the socket. Signed-off-by: Duan Jiong Signed-off-by: David S. Miller --- diff --git a/net/dccp/ipv6.c b/net/dccp/ipv6.c index 9c61f9c..6cf9f77 100644 --- a/net/dccp/ipv6.c +++ b/net/dccp/ipv6.c @@ -135,6 +135,7 @@ static void dccp_v6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, if (dst) dst->ops->redirect(dst, sk, skb); + goto out; } if (type == ICMPV6_PKT_TOOBIG) {