[PATCH] arm: plat-omap: iommu: fix request_mem_region() error path

Hiroshi DOYU Hiroshi.DOYU at nokia.com
Mon Mar 14 08:50:29 EDT 2011


Hi Aaro,

From: Aaro Koskinen <aaro.koskinen at nokia.com>
Subject: [PATCH] arm: plat-omap: iommu: fix request_mem_region() error path
Date: Mon, 14 Mar 2011 14:28:32 +0200

> request_mem_region() error exit will leak ioremapped memory. Fix this
> by moving the ioremap() after request_mem_region(), which is the proper
> order to do this anyway.
> 
> Signed-off-by: Aaro Koskinen <aaro.koskinen at nokia.com>
> ---
>  arch/arm/plat-omap/iommu.c |   14 ++++++++------
>  1 files changed, 8 insertions(+), 6 deletions(-)

True. Thank you for catching this.



More information about the linux-arm-kernel mailing list