aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/dma-debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dma-debug.c b/lib/dma-debug.c
index 3b93129a968c..a9b6b5c9e091 100644
--- a/lib/dma-debug.c
+++ b/lib/dma-debug.c
@@ -862,7 +862,7 @@ static inline bool overlap(void *addr, u64 size, void *start, void *end)
862 862
863 return ((addr >= start && addr < end) || 863 return ((addr >= start && addr < end) ||
864 (addr2 >= start && addr2 < end) || 864 (addr2 >= start && addr2 < end) ||
865 ((addr < start) && (addr2 >= end))); 865 ((addr < start) && (addr2 > end)));
866} 866}
867 867
868static void check_for_illegal_area(struct device *dev, void *addr, u64 size) 868static void check_for_illegal_area(struct device *dev, void *addr, u64 size)