1
0
Files
linux/drivers/video
Julia Lawall 950d442ad0 drivers/video: 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>
Acked-by: Krzysztof Helt <krzysztof.h1@wp.pl>
Acked-by: Ondrej Zajicek <santiago@crfreenet.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-07-30 09:41:45 -07:00
..
2008-07-24 10:47:39 -07:00
2008-05-20 13:31:53 -07:00
2008-07-24 10:47:40 -07:00
2008-03-10 18:01:20 -07:00
2008-04-28 08:58:38 -07:00
2008-07-24 10:47:37 -07:00
2008-04-28 08:58:18 -07:00
2008-07-24 10:47:40 -07:00
2008-05-08 21:37:30 -07:00
2008-07-20 17:24:39 -07:00
2008-07-24 10:47:34 -07:00
2008-07-24 10:47:34 -07:00
2008-05-08 21:37:30 -07:00
2008-05-08 21:37:30 -07:00
2008-05-08 21:37:30 -07:00
2008-02-03 17:31:49 +02:00
2008-05-18 13:28:49 -07:00
2008-07-24 10:47:39 -07:00
2008-05-08 21:37:30 -07:00
2008-04-28 08:58:35 -07:00
2008-02-06 10:41:16 -08:00
2008-06-10 14:13:09 -07:00
2008-07-26 12:00:12 -07:00
2008-06-06 11:29:12 -07:00
2008-04-28 08:58:41 -07:00
2008-07-24 10:47:41 -07:00
2008-07-26 22:25:20 +01:00
2008-07-24 10:47:37 -07:00
2008-05-24 09:56:13 -07:00
2008-04-28 08:58:38 -07:00
2008-07-26 12:00:12 -07:00
2008-05-08 21:37:30 -07:00
2008-07-24 10:47:38 -07:00
2008-07-04 10:40:08 -07:00