diff options
Diffstat (limited to 'net/ipv4/ipmr.c')
-rw-r--r-- | net/ipv4/ipmr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c index 4198615ca678..221271758b93 100644 --- a/net/ipv4/ipmr.c +++ b/net/ipv4/ipmr.c | |||
@@ -423,7 +423,7 @@ static int vif_add(struct vifctl *vifc, int mrtsock) | |||
423 | return -ENOBUFS; | 423 | return -ENOBUFS; |
424 | break; | 424 | break; |
425 | case 0: | 425 | case 0: |
426 | dev = ip_dev_find(vifc->vifc_lcl_addr.s_addr); | 426 | dev = ip_dev_find(&init_net, vifc->vifc_lcl_addr.s_addr); |
427 | if (!dev) | 427 | if (!dev) |
428 | return -EADDRNOTAVAIL; | 428 | return -EADDRNOTAVAIL; |
429 | dev_put(dev); | 429 | dev_put(dev); |