All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch 1/1] arm: bcmring: Fix locking in dma_unmap
       [not found] ` <20100129112739.265153293@linutronix.de>
@ 2010-01-29 20:22   ` Leo (Hao) Chen
  0 siblings, 0 replies; only message in thread
From: Leo (Hao) Chen @ 2010-01-29 20:22 UTC (permalink / raw)
  To: linux-arm-kernel

Thanks Thomas for fixing this bug.

Acked-by: Leo Chen <leochen@broadcom.com>

On Fri, Jan 29, 2010 at 03:28:45AM -0800, Thomas Gleixner wrote:
> dma_unmap is missing a down(&memMap->lock).
> 
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
> Cc: Leo Chen <leochen@broadcom.com>
> Cc: Scott Branden <sbranden@broadcom.com>
> Cc: linux-arm-kernel at lists.infradead.org
> ---
>  arch/arm/mach-bcmring/dma.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> Index: linux-2.6-tip/arch/arm/mach-bcmring/dma.c
> ===================================================================
> --- linux-2.6-tip.orig/arch/arm/mach-bcmring/dma.c
> +++ linux-2.6-tip/arch/arm/mach-bcmring/dma.c
> @@ -2225,6 +2225,8 @@ int dma_unmap(DMA_MemMap_t *memMap,	/* S
>  	DMA_Region_t *region;
>  	DMA_Segment_t *segment;
>  
> +	down(&memMap->lock);
> +
>  	for (regionIdx = 0; regionIdx < memMap->numRegionsUsed; regionIdx++) {
>  		region = &memMap->region[regionIdx];
>  
> 
> 
> 

-- 

Leo Hao Chen

------------------------
Life is short, run long.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-01-29 20:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20100129112730.919289325@linutronix.de>
     [not found] ` <20100129112739.265153293@linutronix.de>
2010-01-29 20:22   ` [patch 1/1] arm: bcmring: Fix locking in dma_unmap Leo (Hao) Chen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.