diff options
author | Julia Lawall <julia@diku.dk> | 2010-03-29 17:36:44 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-04-30 09:25:11 -0700 |
commit | 19c190f9e0fe926db28122a804111a7538dc3498 (patch) | |
tree | 6b8ee251d941846dabe35cc3d23ac1b0e556cf42 /arch/parisc | |
parent | 6d602610099632a9a15ef6d2bc9fd7b7d6aeb63e (diff) |
USB: gadget: s3c-hsotg: 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/parisc')
0 files changed, 0 insertions, 0 deletions