[NETNS]: Add namespace parameter to ip_dev_find.
in_dev_find() need a namespace to pass it to fib_get_table(), so add an argument. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
010278ec4c
commit
1ab352768f
@ -594,7 +594,7 @@ static int do_ip_setsockopt(struct sock *sk, int level,
|
||||
err = 0;
|
||||
break;
|
||||
}
|
||||
dev = ip_dev_find(mreq.imr_address.s_addr);
|
||||
dev = ip_dev_find(&init_net, mreq.imr_address.s_addr);
|
||||
if (dev) {
|
||||
mreq.imr_ifindex = dev->ifindex;
|
||||
dev_put(dev);
|
||||
|
Reference in New Issue
Block a user