diff options
Diffstat (limited to 'net')
| -rw-r--r-- | net/ipv6/addrconf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index d1b2d8034b54..1bbf744c2cc3 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
| @@ -2658,8 +2658,10 @@ static void init_loopback(struct net_device *dev) | |||
| 2658 | sp_rt = addrconf_dst_alloc(idev, &sp_ifa->addr, 0); | 2658 | sp_rt = addrconf_dst_alloc(idev, &sp_ifa->addr, 0); |
| 2659 | 2659 | ||
| 2660 | /* Failure cases are ignored */ | 2660 | /* Failure cases are ignored */ |
| 2661 | if (!IS_ERR(sp_rt)) | 2661 | if (!IS_ERR(sp_rt)) { |
| 2662 | sp_ifa->rt = sp_rt; | ||
| 2662 | ip6_ins_rt(sp_rt); | 2663 | ip6_ins_rt(sp_rt); |
| 2664 | } | ||
| 2663 | } | 2665 | } |
| 2664 | read_unlock_bh(&idev->lock); | 2666 | read_unlock_bh(&idev->lock); |
| 2665 | } | 2667 | } |
