linux/drivers/infiniband/hw
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
..
amso1100 RDMA/core: Add local DMA L_Key support 2008-07-14 23:48:53 -07:00
cxgb3 RDMA/cxgb3: Fixes for zero STag 2008-07-14 23:48:53 -07:00
ehca IB/ehca: Release mutex in error path of alloc_small_queue_page() 2008-07-22 14:18:10 -07:00
ipath Merge branch 'core/rcu' into core/rcu-for-linus 2008-07-15 21:10:12 +02:00
mlx4 IB/mlx4: Use kzalloc() for new QPs so flags are initialized to 0 2008-07-14 23:48:53 -07:00
mthca IB/mthca: Fix check of max_send_sge for special QPs 2008-07-14 23:48:52 -07:00
nes RDMA/core: Add local DMA L_Key support 2008-07-14 23:48:53 -07:00