Patchwork net: Fix inner_network_header assignment in skb-copy.

login
register
mail settings
Submitter Pravin B Shelar
Date Feb. 2, 2013, 1:18 a.m.
Message ID <1359767929-1875-1-git-send-email-pshelar@nicira.com>
Download mbox | patch
Permalink /patch/217635/
State Accepted
Delegated to: David Miller
Headers show

Comments

Pravin B Shelar - Feb. 2, 2013, 1:18 a.m.
Use correct inner offset to set inner_network_offset.
Found by inspection.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
---
 net/core/skbuff.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
David Miller - Feb. 3, 2013, 9:11 p.m.
From: Pravin B Shelar <pshelar@nicira.com>
Date: Fri,  1 Feb 2013 17:18:49 -0800

> Use correct inner offset to set inner_network_offset.
> Found by inspection.
> 
> Signed-off-by: Pravin B Shelar <pshelar@nicira.com>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index bddc1dd..55f7ef6 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -686,7 +686,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;