diff options
| author | Julia Lawall <julia@diku.dk> | 2010-08-04 23:54:26 +0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-31 22:40:35 +0400 |
| commit | d1ae4da731a6e049a675097ebfd9a02b9b50530e (patch) | |
| tree | 63326555cf48a30edf242d40088083ebe4752704 /scripts | |
| parent | e3a92cdedf3584e20e13511aab252a82d715f927 (diff) | |
| download | linux-d1ae4da731a6e049a675097ebfd9a02b9b50530e.tar.xz | |
drivers/staging/iio: call mutex_unlock in error handling code
Adjust the error handling code so that it benefits from the call to
mutex_unlock at the end of the function.
The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@rcu exists@
position p1;
expression E;
@@
mutex_lock@p1(E);
...
mutex_unlock(E);
@exists@
position rcu.p1;
expression E;
@@
*mutex_lock@p1(E);
... when != mutex_unlock(E);
?*return ...;
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
