summaryrefslogtreecommitdiff
path: root/debian/patches/16_net_apricot_stack_of.patch
blob: 7764800fcdcb03fc85911cc7805e01357ca0109c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#DPATCHLEVEL=0

2005-11-28  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.


--- linux/src/drivers/net/apricot.c	2005-11-28 00:13:12.000000000 +0100
+++ linux/src/drivers/net/apricot.c	2005-11-28 00:13:05.000000000 +0100
@@ -681,7 +681,7 @@
     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 */