Skip to content

Commit

Permalink
Prevent the ioctl from handling even unsupported ioctls
Browse files Browse the repository at this point in the history
SVN-Revision: 8360
  • Loading branch information
ffainelli committed Aug 6, 2007
1 parent 24c25b0 commit 9882253
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions target/linux/rdc-2.6/files/drivers/net/r6040.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 9882253

Please sign in to comment.