author | Steve Wise
<swise@opengridcomputing.com> 2009-10-07 22:38:12 UTC |
committer | Roland Dreier
<rolandd@cisco.com> 2009-10-07 22:38:12 UTC |
parent | aa07a99412f56ad56faecbaa683f3bc0ae99abc2 |
drivers/infiniband/core/iwcm.c | +2 | -0 |
diff --git a/drivers/infiniband/core/iwcm.c b/drivers/infiniband/core/iwcm.c index 55d093a36ae..625fec5a741 100644 --- a/drivers/infiniband/core/iwcm.c +++ b/drivers/infiniband/core/iwcm.c @@ -362,7 +362,9 @@ static void destroy_cm_id(struct iw_cm_id *cm_id) * In either case, must tell the provider to reject. */ cm_id_priv->state = IW_CM_STATE_DESTROYING; + spin_unlock_irqrestore(&cm_id_priv->lock, flags); cm_id->device->iwcm->reject(cm_id, NULL, 0); + spin_lock_irqsave(&cm_id_priv->lock, flags); break; case IW_CM_STATE_CONN_SENT: case IW_CM_STATE_DESTROYING: