]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] forcedeth: fix random memory scribbling bug
authorManfred Spraul <manfred@colorfullife.com>
Sat, 24 Dec 2005 13:19:24 +0000 (14:19 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 24 Dec 2005 19:53:32 +0000 (11:53 -0800)
commit5c7eaa45e34062347b00a447f30493fc028b4ad3
tree1bd940fb161aea432af117543e936ca9b677c985
parentc822be6b0ceff60d5b4da6b624af83aa191fb53d
[PATCH] forcedeth: fix random memory scribbling bug

Two critical bugs were found in forcedeth 0.47:
 - TSO doesn't work.
 - pci_map_single() for the rx buffers is called with size==0.  This bug
   is critical, it causes random memory corruptions on systems with an
   iommu.

Below is a minimal fix for both bugs, for 2.6.15.

TSO will be fixed properly in the next version.  Tested on x86-64.

Signed-Off-By: Manfred Spraul <manfred@colorfullife.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/net/forcedeth.c