diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-08-06 20:28:10 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-08-06 20:28:10 +0000 |
commit | a46bd6cee4e494a5879393349c2a6990996c5904 (patch) | |
tree | 33b88bdcefd065b43e42eae2d7fa589b5836a53e /target/linux | |
parent | 277bab74402296d0ad592684f073df0af2df84f8 (diff) | |
download | upstream-a46bd6cee4e494a5879393349c2a6990996c5904.tar.gz upstream-a46bd6cee4e494a5879393349c2a6990996c5904.tar.bz2 upstream-a46bd6cee4e494a5879393349c2a6990996c5904.zip |
Prevent the ioctl from handling even unsupported ioctls
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8360 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/rdc-2.6/files/drivers/net/r6040.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/rdc-2.6/files/drivers/net/r6040.c b/target/linux/rdc-2.6/files/drivers/net/r6040.c index 350145e94e..376b6ecfe9 100644 --- a/target/linux/rdc-2.6/files/drivers/net/r6040.c +++ b/target/linux/rdc-2.6/files/drivers/net/r6040.c @@ -638,8 +638,8 @@ static int netdev_ioctl (struct net_device *dev, struct ifreq *rq, int cmd) if(args[0]&(1<<27))phy_write(ioaddr,29,20,(phy_read(ioaddr,29,20)|0x2000)); /* port 2 */ if(args[0]&(1<<25))phy_write(ioaddr,29,20,(phy_read(ioaddr,29,20)|0x0020)); /* port 3 */ - } - return 0; + } + return -EOPNOTSUPP; } /** |