From: Andi Kleen Date: Wed, 11 Jan 2006 21:44:54 +0000 (+0100) Subject: [PATCH] i386: make pci_map_single/pci_map_sg warn for zero length. X-Git-Tag: v2.6.16-rc1~330 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd78f11790c37e2165733699f50450500e63a7b3;p=pandora-kernel.git [PATCH] i386: make pci_map_single/pci_map_sg warn for zero length. As suggested by Linus. This catches driver bugs that could cause corruption on IOMMU architectures. Also I converted the BUGs to out_of_line_bug()s to save a bit of text space. Signed-off-by: Andi Kleen Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed