From 3ab2ff95673bb5b3baa6ef759f71cf3fcb18dcf8 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Thu, 16 May 2002 07:54:37 -0400 Subject: Fix phy id masking in 8139too net driver. Noticed by Eric Bowles. --- drivers/net/8139too.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/8139too.c b/drivers/net/8139too.c index b8df6899461c..1b412930f557 100644 --- a/drivers/net/8139too.c +++ b/drivers/net/8139too.c @@ -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; } -- cgit v1.2.3