aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/devinet.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/devinet.c')
-rw-r--r--net/ipv4/devinet.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c
index b12dae2b0b2d..56fce3ab6c55 100644
--- a/net/ipv4/devinet.c
+++ b/net/ipv4/devinet.c
@@ -613,9 +613,7 @@ int devinet_ioctl(struct net *net, unsigned int cmd, void __user *arg)
613 if (colon) 613 if (colon)
614 *colon = 0; 614 *colon = 0;
615 615
616#ifdef CONFIG_KMOD
617 dev_load(net, ifr.ifr_name); 616 dev_load(net, ifr.ifr_name);
618#endif
619 617
620 switch (cmd) { 618 switch (cmd) {
621 case SIOCGIFADDR: /* Get interface address */ 619 case SIOCGIFADDR: /* Get interface address */
@@ -1283,7 +1281,7 @@ static int devinet_conf_proc(ctl_table *ctl, int write,
1283 return ret; 1281 return ret;
1284} 1282}
1285 1283
1286static int devinet_conf_sysctl(ctl_table *table, int __user *name, int nlen, 1284static int devinet_conf_sysctl(ctl_table *table,
1287 void __user *oldval, size_t __user *oldlenp, 1285 void __user *oldval, size_t __user *oldlenp,
1288 void __user *newval, size_t newlen) 1286 void __user *newval, size_t newlen)
1289{ 1287{
@@ -1379,12 +1377,11 @@ int ipv4_doint_and_flush(ctl_table *ctl, int write,
1379 return ret; 1377 return ret;
1380} 1378}
1381 1379
1382int ipv4_doint_and_flush_strategy(ctl_table *table, int __user *name, int nlen, 1380int ipv4_doint_and_flush_strategy(ctl_table *table,
1383 void __user *oldval, size_t __user *oldlenp, 1381 void __user *oldval, size_t __user *oldlenp,
1384 void __user *newval, size_t newlen) 1382 void __user *newval, size_t newlen)
1385{ 1383{
1386 int ret = devinet_conf_sysctl(table, name, nlen, oldval, oldlenp, 1384 int ret = devinet_conf_sysctl(table, oldval, oldlenp, newval, newlen);
1387 newval, newlen);
1388 struct net *net = table->extra2; 1385 struct net *net = table->extra2;
1389 1386
1390 if (ret == 1) 1387 if (ret == 1)