]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] Fix swiotlb pci_map_sg error handling
authorAndi Kleen <ak@muc.de>
Tue, 20 Dec 2005 13:45:19 +0000 (14:45 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 20 Dec 2005 18:13:54 +0000 (10:13 -0800)
commit7e8702334841b6da4b8f564dc1771ca17c59a621
tree73f52ad8b0b61a5d863b324041bcc519d7cc5242
parent7ca0b3bf695632003a2a0f98b9fc1451b0483346
[PATCH] Fix swiotlb pci_map_sg error handling

The overflow checking condition in lib/swiotlb.c was wrong.
It would first run a NULL pointer through virt_to_phys before
testing it. Since pci_map_sg overflow is not that uncommon
and causes data corruption (including broken file systems) when not
properly detected I think it's better to fix it in 2.6.15.

This affects x86-64 and IA64.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
lib/swiotlb.c