diff options
-rw-r--r-- | net/ipv4/route.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index acd69cfe2951..d9724889ff09 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c | |||
@@ -2359,7 +2359,8 @@ struct rtable *__ip_route_output_key_hash(struct net *net, struct flowi4 *fl4, | |||
2359 | } | 2359 | } |
2360 | 2360 | ||
2361 | /* L3 master device is the loopback for that domain */ | 2361 | /* L3 master device is the loopback for that domain */ |
2362 | dev_out = l3mdev_master_dev_rcu(dev_out) ? : net->loopback_dev; | 2362 | dev_out = l3mdev_master_dev_rcu(FIB_RES_DEV(res)) ? : |
2363 | net->loopback_dev; | ||
2363 | fl4->flowi4_oif = dev_out->ifindex; | 2364 | fl4->flowi4_oif = dev_out->ifindex; |
2364 | flags |= RTCF_LOCAL; | 2365 | flags |= RTCF_LOCAL; |
2365 | goto make_route; | 2366 | goto make_route; |