summaryrefslogtreecommitdiffstats
path: root/drivers/net/sky2.h
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2006-04-05 17:47:15 -0700
committerJeff Garzik <jeff@garzik.org>2006-04-12 18:11:23 -0400
commit43f2f10444c008296cc8de68a72fd87b33b50452 (patch)
tree4b0268f07e4478e844b4f59f868bd0e2fbb0baed /drivers/net/sky2.h
parent94843566d7119e049a72618a3c939d5c2be022c7 (diff)
downloadop-kernel-dev-43f2f10444c008296cc8de68a72fd87b33b50452.zip
op-kernel-dev-43f2f10444c008296cc8de68a72fd87b33b50452.tar.gz
[PATCH] sky2: bad memory reference on dual port cards
Sky2 driver will oops referencing bad memory if used on a dual port card. The problem is accessing past end of MIB counter space. Applies for both 2.6.17 and 2.6.16 (with fuzz) Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/sky2.h')
-rw-r--r--drivers/net/sky2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sky2.h b/drivers/net/sky2.h
index 62532b4..89dd18cd 100644
--- a/drivers/net/sky2.h
+++ b/drivers/net/sky2.h
@@ -1375,7 +1375,7 @@ enum {
GM_PHY_ADDR = 0x0088, /* 16 bit r/w GPHY Address Register */
/* MIB Counters */
GM_MIB_CNT_BASE = 0x0100, /* Base Address of MIB Counters */
- GM_MIB_CNT_SIZE = 256,
+ GM_MIB_CNT_END = 0x025C, /* Last MIB counter */
};
OpenPOWER on IntegriCloud