From: Wei Yongjun Date: Thu, 2 Jul 2009 16:59:49 +0000 (+0000) Subject: xfrm6: fix the proto and ports decode of sctp protocol X-Git-Tag: v2.6.31-rc3~70^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59cae0092e4da753b5a2adb32933e0d1b223bcc5;p=pandora-kernel.git xfrm6: fix the proto and ports decode of sctp protocol The SCTP pushed the skb above the sctp chunk header, so the check of pskb_may_pull(skb, nh + offset + 1 - skb->data) in _decode_session6() will never return 0 and the ports decode of sctp will always fail. (nh + offset + 1 - skb->data < 0) Signed-off-by: Wei Yongjun Acked-by: Herbert Xu Signed-off-by: David S. Miller --- Reading git-diff-tree failed