summaryrefslogtreecommitdiff
path: root/debian/patches/16_net_apricot_stack_of.patch
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2005-11-28 00:33:49 +0000
committerGuillem Jover <guillem@debian.org>2005-11-28 00:33:49 +0000
commit45687536a7af7d617fd319359578a7f8d934ae62 (patch)
tree3b0acd7d9e4927530e3f32270e5268ac39767efa /debian/patches/16_net_apricot_stack_of.patch
parent71e47dbdb39d3b8929fbdce674fa40e7d14fb9ee (diff)
Fix segmentation fault on boot up. The apricot net driver was trashing the
stack when reading the MAC address from the io port. (Closes: #340389) - debian/patches/16_net_apricot_stack_of.patch: New file. Thanks to Sergio Lopez <koro@sinrega.org>.
Diffstat (limited to 'debian/patches/16_net_apricot_stack_of.patch')
-rw-r--r--debian/patches/16_net_apricot_stack_of.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/patches/16_net_apricot_stack_of.patch b/debian/patches/16_net_apricot_stack_of.patch
new file mode 100644
index 0000000..3a02557
--- /dev/null
+++ b/debian/patches/16_net_apricot_stack_of.patch
@@ -0,0 +1,18 @@
+#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 */