Julia Lawall 19c190f9e0 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>
2010-04-30 09:25:11 -07:00
..
2009-01-07 09:59:58 -08:00
2010-03-02 14:53:40 -08:00
2010-02-04 15:55:09 +01:00
2009-07-12 12:22:34 -07:00
2009-09-23 06:46:35 -07:00
2008-10-17 14:40:53 -07:00