Julia Lawall c259ae52e2 [PATCH] ocfs2: Release mutex in error handling code
The mutex is released on a successful return, so it would seem that it
should be released on an error return as well.

The semantic patch finds this problem is as follows:
(http://www.emn.fr/x-info/coccinelle/)

// <smpl>
@@
expression l;
@@

mutex_lock(l);
... when != mutex_unlock(l)
    when any
    when strict
(
if (...) { ... when != mutex_unlock(l)
+   mutex_unlock(l);
    return ...;
}
|
mutex_unlock(l);
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
2008-07-31 16:21:14 -07:00
..
2008-05-21 16:55:59 -07:00
2007-10-16 09:42:58 -07:00
2008-01-25 14:45:34 -08:00
2008-03-03 15:50:21 -08:00
2007-10-12 11:54:38 -07:00
2008-01-25 15:05:44 -08:00
2007-04-26 15:10:40 -07:00
2008-01-25 15:05:44 -08:00
2008-01-25 14:46:01 -08:00
2008-04-18 08:56:11 -07:00
2008-02-03 17:33:42 +02:00
2008-01-25 15:05:46 -08:00