]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitac51838c1c3f6bf71eab0e0be78c6aaa14d70715
treecbe18bcf77ca68fdc4cb9200c7ffdecc31bacb27
parent0ffbb58b635c72179fdb66898df3c60d1c12233f
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