[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)
commit1836098f97d22c81652aeeec64d1819dc2177bdb
tree1bd940fb161aea432af117543e936ca9b677c985
parent8f43d8e1147406901b7d972d1b528d94def23b0e
[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