diff options
Diffstat (limited to 'net/decnet/sysctl_net_decnet.c')
-rw-r--r-- | net/decnet/sysctl_net_decnet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/decnet/sysctl_net_decnet.c b/net/decnet/sysctl_net_decnet.c index 52e40d7eb22d..ae354a43fb97 100644 --- a/net/decnet/sysctl_net_decnet.c +++ b/net/decnet/sysctl_net_decnet.c | |||
@@ -259,7 +259,7 @@ static int dn_def_dev_strategy(ctl_table *table, int __user *name, int nlen, | |||
259 | 259 | ||
260 | devname[newlen] = 0; | 260 | devname[newlen] = 0; |
261 | 261 | ||
262 | dev = dev_get_by_name(devname); | 262 | dev = dev_get_by_name(&init_net, devname); |
263 | if (dev == NULL) | 263 | if (dev == NULL) |
264 | return -ENODEV; | 264 | return -ENODEV; |
265 | 265 | ||
@@ -299,7 +299,7 @@ static int dn_def_dev_handler(ctl_table *table, int write, | |||
299 | devname[*lenp] = 0; | 299 | devname[*lenp] = 0; |
300 | strip_it(devname); | 300 | strip_it(devname); |
301 | 301 | ||
302 | dev = dev_get_by_name(devname); | 302 | dev = dev_get_by_name(&init_net, devname); |
303 | if (dev == NULL) | 303 | if (dev == NULL) |
304 | return -ENODEV; | 304 | return -ENODEV; |
305 | 305 | ||