diff options
author | Denis V. Lunev <den@openvz.org> | 2008-01-21 20:32:38 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:10:20 -0500 |
commit | 7fee0ca23711ce1a6b13d3ab78915809a72a59ec (patch) | |
tree | e2df8e3997d996749b5169df59a56f3df67158c5 /net/ipv4/fib_semantics.c | |
parent | da0e28cb68a7e22b47c6ae1a5b12cb538c13c69f (diff) |
[NETNS]: Add netns parameter to inetdev_by_index.
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_semantics.c')
-rw-r--r-- | net/ipv4/fib_semantics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c index ecd91c60975f..8b47e112ae5c 100644 --- a/net/ipv4/fib_semantics.c +++ b/net/ipv4/fib_semantics.c | |||
@@ -583,7 +583,7 @@ out: | |||
583 | if (nh->nh_flags&(RTNH_F_PERVASIVE|RTNH_F_ONLINK)) | 583 | if (nh->nh_flags&(RTNH_F_PERVASIVE|RTNH_F_ONLINK)) |
584 | return -EINVAL; | 584 | return -EINVAL; |
585 | 585 | ||
586 | in_dev = inetdev_by_index(nh->nh_oif); | 586 | in_dev = inetdev_by_index(&init_net, nh->nh_oif); |
587 | if (in_dev == NULL) | 587 | if (in_dev == NULL) |
588 | return -ENODEV; | 588 | return -ENODEV; |
589 | if (!(in_dev->dev->flags&IFF_UP)) { | 589 | if (!(in_dev->dev->flags&IFF_UP)) { |