[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
@@ -1395,7 +1395,7 @@ static struct in_device * ip_mc_find_dev(struct ip_mreqn *imr)
|
||||
return idev;
|
||||
}
|
||||
if (imr->imr_address.s_addr) {
|
||||
dev = ip_dev_find(imr->imr_address.s_addr);
|
||||
dev = ip_dev_find(&init_net, imr->imr_address.s_addr);
|
||||
if (!dev)
|
||||
return NULL;
|
||||
dev_put(dev);
|
||||
|
Reference in New Issue
Block a user