aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index 3b79bad3d02d..44ef8f8998ca 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -4783,7 +4783,7 @@ static int dev_ifsioc_locked(struct net *net, struct ifreq *ifr, unsigned int cm
4783 * is never reached 4783 * is never reached
4784 */ 4784 */
4785 WARN_ON(1); 4785 WARN_ON(1);
4786 err = -EINVAL; 4786 err = -ENOTTY;
4787 break; 4787 break;
4788 4788
4789 } 4789 }
@@ -5051,7 +5051,7 @@ int dev_ioctl(struct net *net, unsigned int cmd, void __user *arg)
5051 /* Set the per device memory buffer space. 5051 /* Set the per device memory buffer space.
5052 * Not applicable in our case */ 5052 * Not applicable in our case */
5053 case SIOCSIFLINK: 5053 case SIOCSIFLINK:
5054 return -EINVAL; 5054 return -ENOTTY;
5055 5055
5056 /* 5056 /*
5057 * Unknown or private ioctl. 5057 * Unknown or private ioctl.
@@ -5072,7 +5072,7 @@ int dev_ioctl(struct net *net, unsigned int cmd, void __user *arg)
5072 /* Take care of Wireless Extensions */ 5072 /* Take care of Wireless Extensions */
5073 if (cmd >= SIOCIWFIRST && cmd <= SIOCIWLAST) 5073 if (cmd >= SIOCIWFIRST && cmd <= SIOCIWLAST)
5074 return wext_handle_ioctl(net, &ifr, cmd, arg); 5074 return wext_handle_ioctl(net, &ifr, cmd, arg);
5075 return -EINVAL; 5075 return -ENOTTY;
5076 } 5076 }
5077} 5077}
5078 5078