From: Timo Teräs Date: Tue, 6 Aug 2013 10:45:43 +0000 (+0300) Subject: ip_gre: fix ipgre_header to return correct offset X-Git-Tag: v3.11-rc6~11^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77a482bdb2e68d13fae87541b341905ba70d572b;p=pandora-kernel.git ip_gre: fix ipgre_header to return correct offset Fix ipgre_header() (header_ops->create) to return the correct amount of bytes pushed. Most callers of dev_hard_header() seem to care only if it was success, but af_packet.c uses it as offset to the skb to copy from userspace only once. In practice this fixes packet socket sendto()/sendmsg() to gre tunnels. Regression introduced in c54419321455631079c7d6e60bc732dd0c5914c5 ("GRE: Refactor GRE tunneling code.") Cc: Pravin B Shelar Signed-off-by: Timo Teräs Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed