From 4631e2fcdc30454a0e6a83a21a218bc0e2d9e5ed Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Thu, 2 Feb 2006 22:49:19 +0000 Subject: 2006-02-02 Sergio Lopez * 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. --- linux/src/drivers/net/apricot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux/src') 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 */ -- cgit v1.2.3