From: Andi Kleen Date: Tue, 20 Dec 2005 13:45:19 +0000 (+0100) Subject: [PATCH] Fix swiotlb pci_map_sg error handling X-Git-Tag: v2.6.15-rc7~16^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e8702334841b6da4b8f564dc1771ca17c59a621;p=pandora-kernel.git [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 Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed