summaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
authorYan, Zheng <zheng.z.yan@intel.com>2011-10-09 00:34:35 +0200
committerDavid S. Miller <davem@davemloft.net>2011-10-10 20:26:16 +0200
commitcdaf557034bb4397b2c86bb424de1788b134f610 (patch)
treebf6bbf731188f17d83e5ca7018224c1c0e2ee96c /net/ipv6
parentbnx2x: fix cl_id allocation for non-eth clients for NPAR mode (diff)
downloadlinux-cdaf557034bb4397b2c86bb424de1788b134f610.tar.xz
linux-cdaf557034bb4397b2c86bb424de1788b134f610.zip
gro: refetch inet6_protos[] after pulling ext headers
ipv6_gro_receive() doesn't update the protocol ops after pulling the ext headers. It looks like a typo. Signed-off-by: Zheng Yan <zheng.z.yan@intel.com> Acked-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/af_inet6.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c
index 3b5669a2582d..d27c797f9f05 100644
--- a/net/ipv6/af_inet6.c
+++ b/net/ipv6/af_inet6.c
@@ -875,6 +875,7 @@ static struct sk_buff **ipv6_gro_receive(struct sk_buff **head,
skb_reset_transport_header(skb);
__skb_push(skb, skb_gro_offset(skb));
+ ops = rcu_dereference(inet6_protos[proto]);
if (!ops || !ops->gro_receive)
goto out_unlock;