Jan Beulich ac2b3e67dd dma-mapping: fix off-by-one error in dma_capable()
dma_mask is, when interpreted as address, the last valid byte, and hence
comparison msut also be done using the last valid of the buffer in
question.

Also fix the open-coded instances in lib/swiotlb.c.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Cc: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Becky Bruce <beckyb@kernel.crashing.org>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-12-16 07:20:12 -08:00
..
2009-11-06 15:04:55 -08:00
2009-09-27 04:17:21 -04:00
2009-12-16 07:20:12 -08:00
2009-03-31 14:25:08 -07:00
2009-06-15 14:32:54 -07:00
2009-01-06 14:06:52 +01:00
2009-01-16 10:09:10 +01:00
2009-09-22 07:17:42 -07:00
2009-02-18 15:37:55 -08:00
2009-06-17 09:33:49 -07:00
2009-09-09 13:29:18 -07:00
2008-11-30 11:00:15 -08:00
2009-06-17 09:33:49 -07:00
2008-09-04 09:46:13 +01:00
2009-02-01 11:01:25 +05:30
2009-07-10 14:24:05 -07:00
2009-06-17 09:33:49 -07:00