diff options
Diffstat (limited to 'net/ipv4/ip_sockglue.c')
-rw-r--r-- | net/ipv4/ip_sockglue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_sockglue.c b/net/ipv4/ip_sockglue.c index 82817e554363..754b0a5bbfe9 100644 --- a/net/ipv4/ip_sockglue.c +++ b/net/ipv4/ip_sockglue.c | |||
@@ -594,7 +594,7 @@ static int do_ip_setsockopt(struct sock *sk, int level, | |||
594 | err = 0; | 594 | err = 0; |
595 | break; | 595 | break; |
596 | } | 596 | } |
597 | dev = ip_dev_find(mreq.imr_address.s_addr); | 597 | dev = ip_dev_find(&init_net, mreq.imr_address.s_addr); |
598 | if (dev) { | 598 | if (dev) { |
599 | mreq.imr_ifindex = dev->ifindex; | 599 | mreq.imr_ifindex = dev->ifindex; |
600 | dev_put(dev); | 600 | dev_put(dev); |