From: Changli Gao Date: Wed, 2 Jun 2010 14:32:42 +0000 (-0700) Subject: cls_u32: use skb_header_pointer() to dereference data safely X-Git-Tag: v2.6.35-rc2~4^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbc2e7d9cf49e0bf89b9e91fd60a06851a855c5d;p=pandora-kernel.git cls_u32: use skb_header_pointer() to dereference data safely use skb_header_pointer() to dereference data safely the original skb->data dereference isn't safe, as there isn't any skb->len or skb_is_nonlinear() check. skb_header_pointer() is used instead in this patch. And when the skb isn't long enough, we terminate the function u32_classify() immediately with -1. Signed-off-by: Changli Gao Signed-off-by: David S. Miller --- Reading git-diff-tree failed