]> git.karo-electronics.de Git - karo-tx-linux.git/commit
atl1: fix 4G memory corruption bug
authorAlexey Dobriyan <adobriyan@gmail.com>
Thu, 22 May 2008 22:00:25 +0000 (02:00 +0400)
committerJeff Garzik <jgarzik@redhat.com>
Sat, 31 May 2008 02:07:25 +0000 (22:07 -0400)
commitaefdbf1a3b832a580a50cf3d1dcbb717be7cbdbe
tree8424a76c31a2d03204f58e2b155564ff8fbee953
parent08722bc4a066705e3f5fb4a5a87ce717fe9f896e
atl1: fix 4G memory corruption bug

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>
drivers/net/atlx/atl1.c