projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next
[linux-2.6-microblaze.git]
/
net
/
netfilter
/
nf_nat_core.c
diff --git
a/net/netfilter/nf_nat_core.c
b/net/netfilter/nf_nat_core.c
index
9935b66
..
d159e9e
100644
(file)
--- a/
net/netfilter/nf_nat_core.c
+++ b/
net/netfilter/nf_nat_core.c
@@
-107,7
+107,8
@@
int nf_xfrm_me_harder(struct net *net, struct sk_buff *skb, unsigned int family)
dst = skb_dst(skb);
if (dst->xfrm)
dst = ((struct xfrm_dst *)dst)->route;
- dst_hold(dst);
+ if (!dst_hold_safe(dst))
+ return -EHOSTUNREACH;
if (sk && !net_eq(net, sock_net(sk)))
sk = NULL;