Re: [PATCH] iommu: fix end address of vm area comparation in alloc_iovm_area

From: Felipe Contreras
Date: Sun Oct 10 2010 - 12:38:31 EST


On Tue, Aug 17, 2010 at 7:56 PM, Fernando Guzman Lugo <x0095840@xxxxxx> wrote:
> End address of the vm area is .start + bytes -1., not start + byte.
> This patch fixes that issue by doing an inclusive comparison with
> tmp->da_start. This issue was preventing allocate an area of size
> exactly the same than the free area. I did no change the value of
> da_end of each vm area because it is used to get area size in
> several places.
>
> Signed-off-by: Fernando Guzman Lugo <x0095840@xxxxxx>
> Acked-by: Hiroshi DOYU <Hiroshi.DOYU@xxxxxxxxx>

Signed-off-by: Felipe Contreras <felipe.contreras@xxxxxxxxx>

--
Felipe Contreras
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/