summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/pegasos-sources/files/pegasos-sources-2.4.26.CAN-2004-0535.patch')
-rw-r--r--sys-kernel/pegasos-sources/files/pegasos-sources-2.4.26.CAN-2004-0535.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys-kernel/pegasos-sources/files/pegasos-sources-2.4.26.CAN-2004-0535.patch b/sys-kernel/pegasos-sources/files/pegasos-sources-2.4.26.CAN-2004-0535.patch
new file mode 100644
index 000000000000..669fc5fd32fb
--- /dev/null
+++ b/sys-kernel/pegasos-sources/files/pegasos-sources-2.4.26.CAN-2004-0535.patch
@@ -0,0 +1,12 @@
+--- drivers/net/e1000/e1000_ethtool.c 2003-06-13 15:51:34.000000000 +0100
++++ drivers/net/e1000/e1000_ethtool.c.plasmaroo 2004-06-24 11:23:32.524963976 +0100
+@@ -468,6 +468,9 @@
+
+ if(copy_from_user(&regs, addr, sizeof(regs)))
+ return -EFAULT;
++ memset(regs_buff, 0, sizeof(regs_buff));
++ if (regs.len > E1000_REGS_LEN)
++ regs.len = E1000_REGS_LEN;
+ e1000_ethtool_gregs(adapter, &regs, regs_buff);
+ if(copy_to_user(addr, &regs, sizeof(regs)))
+ return -EFAULT;