diff options
| author | Michal Marek <mmarek@suse.cz> | 2010-10-27 18:15:57 -0400 |
|---|---|---|
| committer | Michal Marek <mmarek@suse.cz> | 2010-10-27 18:15:57 -0400 |
| commit | b74b953b998bcc2db91b694446f3a2619ec32de6 (patch) | |
| tree | 6ce24caabd730f6ae9287ed0676ec32e6ff31e9d /net/xfrm/xfrm_output.c | |
| parent | abb438526201c6a79949ad45375c051b6681c253 (diff) | |
| parent | f6f94e2ab1b33f0082ac22d71f66385a60d8157f (diff) | |
Merge commit 'v2.6.36' into kbuild/misc
Update to be able to fix a recent change to scripts/basic/docproc.c
(commit eda603f).
Diffstat (limited to 'net/xfrm/xfrm_output.c')
| -rw-r--r-- | net/xfrm/xfrm_output.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c index b9fe13138c07..64f2ae1fdc15 100644 --- a/net/xfrm/xfrm_output.c +++ b/net/xfrm/xfrm_output.c | |||
| @@ -14,6 +14,7 @@ | |||
| 14 | #include <linux/netdevice.h> | 14 | #include <linux/netdevice.h> |
| 15 | #include <linux/netfilter.h> | 15 | #include <linux/netfilter.h> |
| 16 | #include <linux/skbuff.h> | 16 | #include <linux/skbuff.h> |
| 17 | #include <linux/slab.h> | ||
| 17 | #include <linux/spinlock.h> | 18 | #include <linux/spinlock.h> |
| 18 | #include <net/dst.h> | 19 | #include <net/dst.h> |
| 19 | #include <net/xfrm.h> | 20 | #include <net/xfrm.h> |
| @@ -94,13 +95,13 @@ resume: | |||
| 94 | goto error_nolock; | 95 | goto error_nolock; |
| 95 | } | 96 | } |
| 96 | 97 | ||
| 97 | dst = dst_pop(dst); | 98 | dst = skb_dst_pop(skb); |
| 98 | if (!dst) { | 99 | if (!dst) { |
| 99 | XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTERROR); | 100 | XFRM_INC_STATS(net, LINUX_MIB_XFRMOUTERROR); |
| 100 | err = -EHOSTUNREACH; | 101 | err = -EHOSTUNREACH; |
| 101 | goto error_nolock; | 102 | goto error_nolock; |
| 102 | } | 103 | } |
| 103 | skb_dst_set(skb, dst); | 104 | skb_dst_set(skb, dst_clone(dst)); |
| 104 | x = dst->xfrm; | 105 | x = dst->xfrm; |
| 105 | } while (x && !(x->outer_mode->flags & XFRM_MODE_FLAG_TUNNEL)); | 106 | } while (x && !(x->outer_mode->flags & XFRM_MODE_FLAG_TUNNEL)); |
| 106 | 107 | ||
