diff options
Diffstat (limited to 'net/decnet')
-rw-r--r-- | net/decnet/dn_route.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c index 768df000523b..eeaa3d819f9c 100644 --- a/net/decnet/dn_route.c +++ b/net/decnet/dn_route.c | |||
@@ -1184,7 +1184,7 @@ static int dn_route_output_key(struct dst_entry **pprt, struct flowi *flp, int f | |||
1184 | 1184 | ||
1185 | err = __dn_route_output_key(pprt, flp, flags); | 1185 | err = __dn_route_output_key(pprt, flp, flags); |
1186 | if (err == 0 && flp->proto) { | 1186 | if (err == 0 && flp->proto) { |
1187 | err = xfrm_lookup(pprt, flp, NULL, 0); | 1187 | err = xfrm_lookup(&init_net, pprt, flp, NULL, 0); |
1188 | } | 1188 | } |
1189 | return err; | 1189 | return err; |
1190 | } | 1190 | } |
@@ -1195,8 +1195,8 @@ int dn_route_output_sock(struct dst_entry **pprt, struct flowi *fl, struct sock | |||
1195 | 1195 | ||
1196 | err = __dn_route_output_key(pprt, fl, flags & MSG_TRYHARD); | 1196 | err = __dn_route_output_key(pprt, fl, flags & MSG_TRYHARD); |
1197 | if (err == 0 && fl->proto) { | 1197 | if (err == 0 && fl->proto) { |
1198 | err = xfrm_lookup(pprt, fl, sk, (flags & MSG_DONTWAIT) ? | 1198 | err = xfrm_lookup(&init_net, pprt, fl, sk, |
1199 | 0 : XFRM_LOOKUP_WAIT); | 1199 | (flags & MSG_DONTWAIT) ? 0 : XFRM_LOOKUP_WAIT); |
1200 | } | 1200 | } |
1201 | return err; | 1201 | return err; |
1202 | } | 1202 | } |