Commit c222dce4 authored by Ingo Molnar's avatar Ingo Molnar

Merge branch 'dma-debug/fixes' of...

Merge branch 'dma-debug/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/linux-2.6-iommu into core/urgent
parents f6faac71 b0a5b83e
...@@ -716,7 +716,7 @@ void dma_debug_init(u32 num_entries) ...@@ -716,7 +716,7 @@ void dma_debug_init(u32 num_entries)
for (i = 0; i < HASH_SIZE; ++i) { for (i = 0; i < HASH_SIZE; ++i) {
INIT_LIST_HEAD(&dma_entry_hash[i].list); INIT_LIST_HEAD(&dma_entry_hash[i].list);
dma_entry_hash[i].lock = SPIN_LOCK_UNLOCKED; spin_lock_init(&dma_entry_hash[i].lock);
} }
if (dma_debug_fs_init() != 0) { if (dma_debug_fs_init() != 0) {
...@@ -862,7 +862,7 @@ static inline bool overlap(void *addr, u64 size, void *start, void *end) ...@@ -862,7 +862,7 @@ static inline bool overlap(void *addr, u64 size, void *start, void *end)
return ((addr >= start && addr < end) || return ((addr >= start && addr < end) ||
(addr2 >= start && addr2 < end) || (addr2 >= start && addr2 < end) ||
((addr < start) && (addr2 >= end))); ((addr < start) && (addr2 > end)));
} }
static void check_for_illegal_area(struct device *dev, void *addr, u64 size) static void check_for_illegal_area(struct device *dev, void *addr, u64 size)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment