bonding: quit messing with IOCTL
The only remaining users are issuing SIOCGMIIPHY and SIOCGMIIREG, neither of which deals with userland pointers. Simply calling ->ndo_do_ioctl() is fine; no messing with set_fs() is needed. It used to mess with SIOCETHTOOL, which would've needed set_fs(), but that has been killed in "[NET] ethtool ops are the only way" 9 years ago... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -471,9 +471,9 @@ static int bond_check_dev_link(struct bonding *bond,
|
||||
/* Yes, the mii is overlaid on the ifreq.ifr_ifru */
|
||||
strncpy(ifr.ifr_name, slave_dev->name, IFNAMSIZ);
|
||||
mii = if_mii(&ifr);
|
||||
if (IOCTL(slave_dev, &ifr, SIOCGMIIPHY) == 0) {
|
||||
if (ioctl(slave_dev, &ifr, SIOCGMIIPHY) == 0) {
|
||||
mii->reg_num = MII_BMSR;
|
||||
if (IOCTL(slave_dev, &ifr, SIOCGMIIREG) == 0)
|
||||
if (ioctl(slave_dev, &ifr, SIOCGMIIREG) == 0)
|
||||
return mii->val_out & BMSR_LSTATUS;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user