From: Simon Horman Date: Thu, 30 May 2013 16:39:29 +0000 (+0000) Subject: netfilter: Correct calculation using skb->tail and skb-network_header X-Git-Tag: v3.11-rc1~16^2~238 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=938177e9f3e0238c1712210f7bb6def38a5c8d7f;p=pandora-kernel.git netfilter: Correct calculation using skb->tail and skb-network_header This corrects an regression introduced by "net: Use 16bits for *_headers fields of struct skbuff" when NET_SKBUFF_DATA_USES_OFFSET is not set. In that case skb->tail will be a pointer whereas skb->network_header will be an offset from head. This is corrected by using wrappers that ensure that calculations are always made using pointers. Reported-by: Stephen Rothwell Reported-by: Chen Gang Signed-off-by: Simon Horman Signed-off-by: David S. Miller --- Reading git-diff-tree failed