summaryrefslogtreecommitdiffstats
path: root/mm/dmapool.c
diff options
context:
space:
mode:
authorThomas Gleixner2015-10-13 19:00:14 +0200
committerThomas Gleixner2015-10-13 19:00:14 +0200
commite50226b4b86755e65aef2129e94d952fee3df722 (patch)
treed4dd925fc7f5c6fe46b647c8027911190595f014 /mm/dmapool.c
parentgenirq: Add flag to force mask in disable_irq[_nosync]() (diff)
parentLinux 4.3-rc5 (diff)
downloadkernel-qcow2-linux-e50226b4b86755e65aef2129e94d952fee3df722.tar.gz
kernel-qcow2-linux-e50226b4b86755e65aef2129e94d952fee3df722.tar.xz
kernel-qcow2-linux-e50226b4b86755e65aef2129e94d952fee3df722.zip
Merge branch 'linus' into irq/core
Bring in upstream updates for patches which depend on them
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)
list_for_each_entry(page, &pool->page_list, page_list) {
if (dma < page->dma)
continue;
- if (dma < (page->dma + pool->allocation))
+ if ((dma - page->dma) < pool->allocation)
return page;
}
return NULL;