Julia Lawall 68905eb4dc drivers/net/ehea/ehea_main.c: 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: Jeff Garzik <jgarzik@redhat.com>
2008-07-30 17:23:39 -04:00
..
2008-07-24 10:47:41 -07:00
2008-07-26 12:00:07 -07:00
2008-07-17 20:20:59 +08:00
2008-07-22 17:30:57 -07:00
2008-07-25 10:53:49 -07:00
2008-07-25 10:53:30 -07:00
2008-07-26 12:00:11 -07:00
2008-07-25 10:53:30 -07:00
2008-07-27 13:57:36 +02:00
2008-07-26 20:30:56 -07:00
2008-07-02 15:06:24 -06:00
2008-07-26 12:00:11 -07:00
2008-07-26 12:00:11 -07:00
2008-07-27 11:35:47 +03:00
2008-07-21 21:54:55 -07:00
2008-07-24 10:47:24 -07:00
2008-07-25 10:53:30 -07:00