]> git.neil.brown.name Git - history.git/commitdiff
Fix phy id masking in 8139too net driver.
authorJeff Garzik <jgarzik@mandrakesoft.com>
Thu, 16 May 2002 11:54:37 +0000 (07:54 -0400)
committerJeff Garzik <jgarzik@mandrakesoft.com>
Thu, 16 May 2002 11:54:37 +0000 (07:54 -0400)
Noticed by Eric Bowles.

drivers/net/8139too.c

index b8df6899461c237d85995e977c252e9ff2a65c09..1b412930f557469b1d937c219985432df1ab3c7f 100644 (file)
@@ -2329,7 +2329,7 @@ static int netdev_ioctl (struct net_device *dev, struct ifreq *rq, int cmd)
 
        if (cmd != SIOCETHTOOL) {
                /* With SIOCETHTOOL, this would corrupt the pointer.  */
-               data->phy_id &= 0x1f;
+               data->phy_id &= 0x3f;
                data->reg_num &= 0x1f;
        }