drivers/message/i2o/exec-osm.c: add missing mutex_unlock
authorJulia Lawall <julia@diku.dk>
Wed, 11 Aug 2010 01:02:03 +0000 (18:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Aug 2010 15:59:05 +0000 (08:59 -0700)
commit32fa45498f843fcf56087b8046d8319fcd455ef0
treecbe18bcf77ca68fdc4cb9200c7ffdecc31bacb27
parent568133ebda39f7507759a744fa9cf4d5097bad2f
drivers/message/i2o/exec-osm.c: add missing mutex_unlock

Add a mutex_unlock missing on the error path.

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

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

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

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/message/i2o/exec-osm.c