[ofa-general] [PATCH 3/6] nes: add missing unlock in error path of nes_alloc_fmr()

Glenn Grundstrom NetEffect glenn at lists.openfabrics.org
Thu Dec 13 16:44:33 PST 2007


A spin_unlock_irqrestore() was missing in an error case
of nes_alloc_fmr().

>From Rolands infiniband tree to update OFED.

Signed-off-by: Glenn Grundstrom <ggrundstrom at neteffect.com>

---

diff --git a/drivers/infiniband/hw/nes/nes_verbs.c b/drivers/infiniband/hw/nes/nes_verbs.c
index ea7625a..cd95aba 100644
--- a/drivers/infiniband/hw/nes/nes_verbs.c
+++ b/drivers/infiniband/hw/nes/nes_verbs.c
@@ -479,6 +479,7 @@ static struct ib_fmr *nes_alloc_fmr(struct ib_pd *ibpd,
 
 			if (!vpbl.pbl_vbase) {
 				ret = -ENOMEM;
+				spin_unlock_irqrestore(&nesadapter->pbl_lock, flags);
 				goto failed_leaf_vpbl_pages_alloc;
 			}
 



More information about the general mailing list