diff options
author | Denis V. Lunev <den@openvz.org> | 2008-02-28 23:51:43 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-02-28 23:51:43 -0500 |
commit | e5b13cb10de209f924fdf9478214bcf7e4008d6d (patch) | |
tree | 212d723fe14e2dd49ab044f8ca969303f316645c /net/ipv4/ipconfig.c | |
parent | 73b3871165e45ea6d57775c6bfb1a1760ad6e36b (diff) |
[NETNS]: Process devinet ioctl in the correct namespace.
Add namespace parameter to devinet_ioctl and locate device inside it for
state changes.
Signed-off-by: Denis V. Lunev <den@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ipconfig.c')
-rw-r--r-- | net/ipv4/ipconfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c index 10013ccee8d..c90e75a66e8 100644 --- a/net/ipv4/ipconfig.c +++ b/net/ipv4/ipconfig.c | |||
@@ -291,7 +291,7 @@ static int __init ic_dev_ioctl(unsigned int cmd, struct ifreq *arg) | |||
291 | 291 | ||
292 | mm_segment_t oldfs = get_fs(); | 292 | mm_segment_t oldfs = get_fs(); |
293 | set_fs(get_ds()); | 293 | set_fs(get_ds()); |
294 | res = devinet_ioctl(cmd, (struct ifreq __user *) arg); | 294 | res = devinet_ioctl(&init_net, cmd, (struct ifreq __user *) arg); |
295 | set_fs(oldfs); | 295 | set_fs(oldfs); |
296 | return res; | 296 | return res; |
297 | } | 297 | } |