Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1568d9f4 authored by Linus Torvalds's avatar Linus Torvalds
Browse files
Pull one more DMA-mapping fix from Marek Szyprowski:
 "This patch fixes very subtle bug (typical off-by-one error) which
  might appear in very rare circumstances."

* 'fixes-for-3.6' of git://git.linaro.org/people/mszyprowski/linux-dma-mapping:
  arm: mm: fix DMA pool affiliation check
parents 1c23ce72 f3d87524
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -489,7 +489,7 @@ static bool __in_atomic_pool(void *start, size_t size)
	void *pool_start = pool->vaddr;
	void *pool_end = pool->vaddr + pool->size;

	if (start < pool_start || start > pool_end)
	if (start < pool_start || start >= pool_end)
		return false;

	if (end <= pool_end)