]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
atl1: fix 4G memory corruption bug
authorAlexey Dobriyan <adobriyan@gmail.com>
Thu, 5 Jun 2008 23:44:59 +0000 (18:44 -0500)
committerChris Wright <chrisw@sous-sol.org>
Mon, 9 Jun 2008 18:27:04 +0000 (11:27 -0700)
commit1965da94d854758b4beebfeadcfae480039cbb76
treed52be3c219510987b94c1f3f4c310fa459560cad
parente44f560e6d3f351c654a8d8b3dcdeb5f2bd81b5b
atl1: fix 4G memory corruption bug

upstream commit: aefdbf1a3b832a580a50cf3d1dcbb717be7cbdbe

When using 4+ GB RAM and SWIOTLB is active, the driver corrupts
memory by writing an skb after the relevant DMA page has been
unmapped.  Although this doesn't happen when *not* using bounce
buffers, clearing the pointer to the DMA page after unmapping
it fixes the problem.

http://marc.info/?t=120861317000005&r=2&w=2

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Jay Cliburn <jacliburn@bellsouth.net>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
[jacliburn@bellsouth.net: backport to 2.6.25.4]
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/net/atl1/atl1_main.c