aboutsummaryrefslogtreecommitdiffstats
path: root/mm/dmapool.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/dmapool.c')
-rw-r--r--mm/dmapool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/dmapool.c b/mm/dmapool.c
index 71a8998cd03a..312a716fa14c 100644
--- a/mm/dmapool.c
+++ b/mm/dmapool.c
@@ -394,7 +394,7 @@ static struct dma_page *pool_find_page(struct dma_pool *pool, dma_addr_t dma)
394 list_for_each_entry(page, &pool->page_list, page_list) { 394 list_for_each_entry(page, &pool->page_list, page_list) {
395 if (dma < page->dma) 395 if (dma < page->dma)
396 continue; 396 continue;
397 if (dma < (page->dma + pool->allocation)) 397 if ((dma - page->dma) < pool->allocation)
398 return page; 398 return page;
399 } 399 }
400 return NULL; 400 return NULL;