linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm: omap: iovmm: add missing mutex_unlock
@ 2009-09-26 21:37 Daniel Walker
  2009-09-28 16:51 ` Kevin Hilman
  2009-10-02 21:55 ` [APPLIED] " Tony Lindgren
  0 siblings, 2 replies; 3+ messages in thread
From: Daniel Walker @ 2009-09-26 21:37 UTC (permalink / raw)
  To: linux-omap; +Cc: Daniel Walker, Julia Lawall, Kevin Hilman, Tony Lindgren

I was using Coccinelle with the mutex_unlock semantic patch, and it
unconvered this problem. It appears to be a valid missing unlock issue.
This change should correct it by moving the unlock below the label.

This patch is against the mainline kernel.

Cc: Julia Lawall <julia@diku.dk>
Cc: Kevin Hilman <khilman@deeprooted.net>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Daniel Walker <dwalker@fifo99.com>
---
 arch/arm/plat-omap/iovmm.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c
index 57f7122..9b6cb90 100644
--- a/arch/arm/plat-omap/iovmm.c
+++ b/arch/arm/plat-omap/iovmm.c
@@ -363,8 +363,9 @@ void *da_to_va(struct iommu *obj, u32 da)
 		goto out;
 	}
 	va = area->va;
-	mutex_unlock(&obj->mmap_lock);
 out:
+	mutex_unlock(&obj->mmap_lock);
+
 	return va;
 }
 EXPORT_SYMBOL_GPL(da_to_va);
-- 
1.6.0.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm: omap: iovmm: add missing mutex_unlock
  2009-09-26 21:37 [PATCH] arm: omap: iovmm: add missing mutex_unlock Daniel Walker
@ 2009-09-28 16:51 ` Kevin Hilman
  2009-10-02 21:55 ` [APPLIED] " Tony Lindgren
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin Hilman @ 2009-09-28 16:51 UTC (permalink / raw)
  To: Daniel Walker; +Cc: linux-omap, Julia Lawall, Tony Lindgren

Daniel Walker <dwalker@fifo99.com> writes:

> I was using Coccinelle with the mutex_unlock semantic patch, and it
> unconvered this problem. It appears to be a valid missing unlock issue.
> This change should correct it by moving the unlock below the label.
>
> This patch is against the mainline kernel.
>
> Cc: Julia Lawall <julia@diku.dk>
> Cc: Tony Lindgren <tony@atomide.com>
> Signed-off-by: Daniel Walker <dwalker@fifo99.com>

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>

> ---
>  arch/arm/plat-omap/iovmm.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c
> index 57f7122..9b6cb90 100644
> --- a/arch/arm/plat-omap/iovmm.c
> +++ b/arch/arm/plat-omap/iovmm.c
> @@ -363,8 +363,9 @@ void *da_to_va(struct iommu *obj, u32 da)
>  		goto out;
>  	}
>  	va = area->va;
> -	mutex_unlock(&obj->mmap_lock);
>  out:
> +	mutex_unlock(&obj->mmap_lock);
> +
>  	return va;
>  }
>  EXPORT_SYMBOL_GPL(da_to_va);
> -- 
> 1.6.0.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [APPLIED] [PATCH] arm: omap: iovmm: add missing mutex_unlock
  2009-09-26 21:37 [PATCH] arm: omap: iovmm: add missing mutex_unlock Daniel Walker
  2009-09-28 16:51 ` Kevin Hilman
@ 2009-10-02 21:55 ` Tony Lindgren
  1 sibling, 0 replies; 3+ messages in thread
From: Tony Lindgren @ 2009-10-02 21:55 UTC (permalink / raw)
  To: linux-omap

This patch has been applied to the linux-omap
by youw fwiendly patch wobot.

Branch in linux-omap: omap-fixes

Initial commit ID (Likely to change): d3b34e8cb9c654902b5e486fbf27849dea48eeaf

PatchWorks
http://patchwork.kernel.org/patch/50274/

Git (Likely to change, and takes a while to get mirrored)
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=d3b34e8cb9c654902b5e486fbf27849dea48eeaf



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-10-02 21:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-26 21:37 [PATCH] arm: omap: iovmm: add missing mutex_unlock Daniel Walker
2009-09-28 16:51 ` Kevin Hilman
2009-10-02 21:55 ` [APPLIED] " Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).