Julia Lawall e73790a57a drivers/char/n_gsm.c: add missing spin_unlock_irqrestore
Add a spin_unlock_irqrestore missing on the error path.  Converting the
return to break leads to the spin_unlock_irqrestore at the end of the
function.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression E1;
@@

* spin_lock_irqsave(E1,...);
  <+... when != E1
  if (...) {
    ... when != E1
*   return ...;
  }
  ...+>
* spin_unlock_irqrestore(E1,...);
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-08-11 08:59:20 -07:00
..
2009-09-24 07:21:03 -07:00
2008-12-13 11:25:49 -08:00
2008-10-20 08:52:41 -07:00
2010-08-10 13:47:40 -07:00
2010-05-17 03:06:12 +02:00
2010-08-10 13:47:40 -07:00
2010-06-04 15:21:44 -07:00
2009-12-10 22:55:36 +01:00
2010-08-10 13:47:45 -07:00
2010-08-10 13:47:43 -07:00
2010-08-10 13:47:39 -07:00
2010-05-27 09:12:50 -07:00
2010-08-10 13:47:44 -07:00
2010-05-27 09:12:50 -07:00
2010-08-10 13:47:40 -07:00
2010-08-10 13:47:40 -07:00
2009-02-22 09:23:02 -08:00
2010-08-10 13:47:44 -07:00
2010-08-10 13:47:40 -07:00
2010-08-10 13:47:43 -07:00
2009-10-14 17:36:53 +02:00
2010-01-04 12:31:21 -08:00
2010-08-10 13:47:44 -07:00
2010-08-10 13:47:44 -07:00