[PATCH] i386: make pci_map_single/pci_map_sg warn for zero length.
authorAndi Kleen <ak@suse.de>
Wed, 11 Jan 2006 21:44:54 +0000 (22:44 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 12 Jan 2006 03:04:56 +0000 (19:04 -0800)
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 <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

No differences found