Files
android_kernel_xiaomi_sm8450/drivers/infiniband/hw/ehca
Julia Lawall 1a867c33bb IB/ehca: Release mutex in error path of alloc_small_queue_page()
The pd->lock mutex is released on a successful return, so 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: Roland Dreier <rolandd@cisco.com>
2008-07-22 14:18:10 -07:00
..
2008-04-16 21:01:13 -07:00
2008-02-04 20:20:42 -08:00
2008-04-29 08:06:12 -07:00
2007-07-20 21:19:43 -07:00
2008-04-16 21:01:13 -07:00
2008-02-04 20:20:42 -08:00
2007-07-09 20:12:26 -07:00