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 | 9882253827b16579bbd317f6e8c0deb75b0ca0f3 (patch) | |
tree | 253b802cda75d532a1fd045ea70c98816cd838ab /target/linux/rdc-2.6/files/drivers/net/r6040.c | |
parent | 24c25b071f2ff18c4f098e1d6d391370a73eba7d (diff) | |
download | mtk-20170518-9882253827b16579bbd317f6e8c0deb75b0ca0f3.zip mtk-20170518-9882253827b16579bbd317f6e8c0deb75b0ca0f3.tar.gz mtk-20170518-9882253827b16579bbd317f6e8c0deb75b0ca0f3.tar.bz2 |
Prevent the ioctl from handling even unsupported ioctls
SVN-Revision: 8360
Diffstat (limited to 'target/linux/rdc-2.6/files/drivers/net/r6040.c')
-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 350145e..376b6ec 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; } /** |