Files
linux/drivers
Julia Lawall 773e82f6cd [SCSI] scsi_scan.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 that makes this change 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: James Bottomley <James.Bottomley@HansenPartnership.com>
2008-07-26 15:14:56 -04:00
..
2008-07-25 10:56:36 -07:00
2008-07-24 10:47:41 -07: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-25 10:53:30 -07:00
2008-07-25 17:39:36 -07:00
2008-07-25 10:53:44 -07:00
2008-07-23 14:42:09 +02: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