diff options
author | 2010-04-06 14:34:48 -0700 | |
---|---|---|
committer | 2010-04-07 08:38:02 -0700 | |
commit | 2a481800caf78f4750cc673c8baed12b5d703ff6 (patch) | |
tree | 7ddbde66351fdf26c262fe8127a98704284e9456 /lib/bitmap.c | |
parent | drivers/char/amiserial.c: add missing local_irq_restore (diff) | |
download | linux-dev-2a481800caf78f4750cc673c8baed12b5d703ff6.tar.xz linux-dev-2a481800caf78f4750cc673c8baed12b5d703ff6.zip |
drivers/gpio/timbgpio.c: add missing unlock
In an error handling case the lock is not unlocked. The return is
converted to a goto, to share the unlock at the end of the function.
A simplified version of the semantic patch that finds this problem is as
follows: (http://coccinelle.lip6.fr/)
// <smpl>
@r exists@
expression E1;
identifier f;
@@
f (...) { <+...
* spin_lock_irqsave (E1,...);
... when != E1
* return ...;
...+> }
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: <richard.rojfors@pelagicore.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions