summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPravin B Shelar <pshelar@nicira.com>2013-02-01 19:18:49 +0400
committerDavid S. Miller <davem@davemloft.net>2013-02-04 01:10:36 +0400
commit92df9b217ee2392024483ba5b85a88d92d60f3c1 (patch)
treed3d18780c49fbbd6db28de7fb793b66f5942c994
parent2e5f421211ff76c17130b4597bc06df4eeead24f (diff)
downloadlinux-92df9b217ee2392024483ba5b85a88d92d60f3c1.tar.xz
net: Fix inner_network_header assignment in skb-copy.
Use correct inner offset to set inner_network_offset. Found by inspection. Signed-off-by: Pravin B Shelar <pshelar@nicira.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/core/skbuff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index a9a2ae3e2213..32443ebc3e89 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -683,7 +683,7 @@ static void __copy_skb_header(struct sk_buff *new, const struct sk_buff *old)
new->network_header = old->network_header;
new->mac_header = old->mac_header;
new->inner_transport_header = old->inner_transport_header;
- new->inner_network_header = old->inner_transport_header;
+ new->inner_network_header = old->inner_network_header;
skb_dst_copy(new, old);
new->rxhash = old->rxhash;
new->ooo_okay = old->ooo_okay;