1a867c33bb
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> |
||
---|---|---|
.. | ||
ehca_av.c | ||
ehca_classes_pSeries.h | ||
ehca_classes.h | ||
ehca_cq.c | ||
ehca_eq.c | ||
ehca_hca.c | ||
ehca_irq.c | ||
ehca_irq.h | ||
ehca_iverbs.h | ||
ehca_main.c | ||
ehca_mcast.c | ||
ehca_mrmw.c | ||
ehca_mrmw.h | ||
ehca_pd.c | ||
ehca_qes.h | ||
ehca_qp.c | ||
ehca_reqs.c | ||
ehca_sqp.c | ||
ehca_tools.h | ||
ehca_uverbs.c | ||
hcp_if.c | ||
hcp_if.h | ||
hcp_phyp.c | ||
hcp_phyp.h | ||
hipz_fns_core.h | ||
hipz_fns.h | ||
hipz_hw.h | ||
ipz_pt_fn.c | ||
ipz_pt_fn.h | ||
Kconfig | ||
Makefile |