[PATCH] arm: plat-omap: iommu: fix request_mem_region() error path
Tony Lindgren
tony at atomide.com
Mon Mar 14 14:12:30 EDT 2011
* Hiroshi DOYU <Hiroshi.DOYU at nokia.com> [110314 05:50]:
> 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.
Applying.
Tony
More information about the linux-arm-kernel
mailing list