summaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2008-07-30 07:33:28 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-30 18:41:45 +0200
commit950d442ad053e660538cdaa6efc0e060c2a65062 (patch)
treec980cdf6c6a1a7a0dec19a9368b5445e1fb7db4a /drivers/rtc
parenthpwdt: don't use static flags (diff)
downloadlinux-950d442ad053e660538cdaa6efc0e060c2a65062.tar.xz
linux-950d442ad053e660538cdaa6efc0e060c2a65062.zip
drivers/video: release mutex in error handling code
The mutex is released on a successful return, so it would seem that it should be released on an error return as well. The semantic patch finds this problem is as follows: (http://www.emn.fr/x-info/coccinelle/) // <smpl> @@ expression l; @@ mutex_lock(l); ... when != mutex_unlock(l) when any when strict ( if (...) { ... when != mutex_unlock(l) + mutex_unlock(l); return ...; } | mutex_unlock(l); ) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Acked-by: Krzysztof Helt <krzysztof.h1@wp.pl> Acked-by: Ondrej Zajicek <santiago@crfreenet.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc')
0 files changed, 0 insertions, 0 deletions