Commit 3ab2ff95 authored by Jeff Garzik's avatar Jeff Garzik

Fix phy id masking in 8139too net driver.

Noticed by Eric Bowles.
parent 0f392554
...@@ -2329,7 +2329,7 @@ static int netdev_ioctl (struct net_device *dev, struct ifreq *rq, int cmd) ...@@ -2329,7 +2329,7 @@ static int netdev_ioctl (struct net_device *dev, struct ifreq *rq, int cmd)
if (cmd != SIOCETHTOOL) { if (cmd != SIOCETHTOOL) {
/* With SIOCETHTOOL, this would corrupt the pointer. */ /* With SIOCETHTOOL, this would corrupt the pointer. */
data->phy_id &= 0x1f; data->phy_id &= 0x3f;
data->reg_num &= 0x1f; data->reg_num &= 0x1f;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment