summaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2012-10-06 22:28:06 +0000
committerDavid S. Miller <davem@davemloft.net>2012-10-07 14:49:17 -0400
commitca07e43e288956a0ad5e6bd075f7aa1fca3bca00 (patch)
treefa3b345f2940b257f7c1b5b268f2ee52926bcbf5 /include/linux/netdevice.h
parent51ec04038c113a811b177baa85d293feff9ce995 (diff)
downloadop-kernel-dev-ca07e43e288956a0ad5e6bd075f7aa1fca3bca00.zip
op-kernel-dev-ca07e43e288956a0ad5e6bd075f7aa1fca3bca00.tar.gz
net: gro: fix a potential crash in skb_gro_reset_offset
Before accessing skb first fragment, better make sure there is one. This is probably not needed for old kernels, since an ethernet frame cannot contain only an ethernet header, but the recent GRO addition to tunnels makes this patch needed. Also skb_gro_reset_offset() can be static, it actually allows compiler to inline it. Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 01646aa..a659fd0 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1663,7 +1663,6 @@ extern int netpoll_trap(void);
#endif
extern int skb_gro_receive(struct sk_buff **head,
struct sk_buff *skb);
-extern void skb_gro_reset_offset(struct sk_buff *skb);
static inline unsigned int skb_gro_offset(const struct sk_buff *skb)
{
OpenPOWER on IntegriCloud