diff mbox

iommu: fix end address of vm area comparation in alloc_iovm_area

Message ID 496565EC904933469F292DDA3F1663E602CA4D8949@dlee06.ent.ti.com (mailing list archive)
State Superseded
Delegated to: Hiroshi DOYU
Headers show

Commit Message

Guzman Lugo, Fernando Aug. 17, 2010, 3:51 a.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c
index b8bcad5..8745d4e 100644
--- a/arch/arm/plat-omap/iovmm.c
+++ b/arch/arm/plat-omap/iovmm.c
@@ -295,7 +295,7 @@  static struct iovm_struct *alloc_iovm_area(struct iommu *obj, u32 da,
 	prev_end = 0;
 	list_for_each_entry(tmp, &obj->mmap, list) {
 
-		if ((prev_end <= start) && (start + bytes < tmp->da_start))
+		if ((prev_end <= start) && (start + bytes <= tmp->da_start))
 			goto found;
 
 		if (flags & IOVMF_DA_ANON)