Home Home > GIT Browse > openSUSE-42.3
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tbogendoerfer@suse.de>2018-01-10 12:28:36 +0100
committerThomas Bogendoerfer <tbogendoerfer@suse.de>2018-01-10 12:28:38 +0100
commit7241e5f0e990bd6fcca000d625940e521808c985 (patch)
tree0499ac3b57359f859f725d265898adedae43e2bf
parent4bbefe9499cca1aa279d55e94ac9ca86f33d6b62 (diff)
IB/rdmavt: restore IRQs on error path in rvt_create_ah()
-rw-r--r--drivers/infiniband/sw/rdmavt/ah.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/rdmavt/ah.c b/drivers/infiniband/sw/rdmavt/ah.c
index 16c446142c2a..b0f09fb45c72 100644
--- a/drivers/infiniband/sw/rdmavt/ah.c
+++ b/drivers/infiniband/sw/rdmavt/ah.c
@@ -119,7 +119,7 @@ struct ib_ah *rvt_create_ah(struct ib_pd *pd,
spin_lock_irqsave(&dev->n_ahs_lock, flags);
if (dev->n_ahs_allocated == dev->dparms.props.max_ah) {
- spin_unlock(&dev->n_ahs_lock);
+ spin_unlock_irqrestore(&dev->n_ahs_lock, flags);
kfree(ah);
return ERR_PTR(-ENOMEM);
}