diff options
author | Jan Beulich <[email protected]> | 2009-12-15 16:47:43 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2009-12-16 07:20:12 -0800 |
commit | ac2b3e67dd59b8c6ef8c199641444c6ea03535a6 (patch) | |
tree | ce7ac263fc47517ed42a15670a5359094b2a1f05 /net/lapb/lapb_iface.c | |
parent | bbead2104e912571c3afb2aafe5ece1b446b56d9 (diff) |
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 <[email protected]>
Cc: FUJITA Tomonori <[email protected]>
Cc: Becky Bruce <[email protected]>
Cc: "Luck, Tony" <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions