summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2006-02-02 22:49:19 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:26:31 +0200
commit4631e2fcdc30454a0e6a83a21a218bc0e2d9e5ed (patch)
treeee0d90748a4175c2b3e886a212d16dbc53cbc2dc /linux
parent1cca4fa7a25df17f6054e75d6732a22f65890113 (diff)
2006-02-02 Sergio Lopez <koro@sinrega.org>
* linux/src/drivers/net/apricot.c (apricot_probe): Increase eth_addr size to 8 so we do not trash the stack when reading from the io ports.
Diffstat (limited to 'linux')
-rw-r--r--linux/src/drivers/net/apricot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/src/drivers/net/apricot.c b/linux/src/drivers/net/apricot.c
index 12db88b..0799f62 100644
--- a/linux/src/drivers/net/apricot.c
+++ b/linux/src/drivers/net/apricot.c
@@ -681,7 +681,7 @@ int apricot_probe(struct device *dev)
struct i596_private *lp;
int checksum = 0;
int ioaddr = 0x300;
- char eth_addr[6];
+ char eth_addr[8];
/* this is easy the ethernet interface can only be at 0x300 */
/* first check nothing is already registered here */