projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ipvs: Keep skb->sk when allocating headroom on tunnel xmit
[linux-2.6-block.git]
/
net
/
netfilter
/
ipvs
/
ip_vs_xmit.c
diff --git
a/net/netfilter/ipvs/ip_vs_xmit.c
b/net/netfilter/ipvs/ip_vs_xmit.c
index 437a3663ad0346e13cfbc0017be20b4bad73c218..bd90bf8107dacb4e7e0683110bb2146faf168b26 100644
(file)
--- a/
net/netfilter/ipvs/ip_vs_xmit.c
+++ b/
net/netfilter/ipvs/ip_vs_xmit.c
@@
-846,6
+846,8
@@
ip_vs_prepare_tunneled_skb(struct sk_buff *skb, int skb_af,
new_skb = skb_realloc_headroom(skb, max_headroom);
if (!new_skb)
goto error;
+ if (skb->sk)
+ skb_set_owner_w(new_skb, skb->sk);
consume_skb(skb);
skb = new_skb;
}