|
@@ -763,11 +763,11 @@ static int complete_subctxt(struct hfi1_filedata *fd)
|
|
}
|
|
}
|
|
|
|
|
|
if (ret) {
|
|
if (ret) {
|
|
- hfi1_rcd_put(fd->uctxt);
|
|
|
|
- fd->uctxt = NULL;
|
|
|
|
spin_lock_irqsave(&fd->dd->uctxt_lock, flags);
|
|
spin_lock_irqsave(&fd->dd->uctxt_lock, flags);
|
|
__clear_bit(fd->subctxt, fd->uctxt->in_use_ctxts);
|
|
__clear_bit(fd->subctxt, fd->uctxt->in_use_ctxts);
|
|
spin_unlock_irqrestore(&fd->dd->uctxt_lock, flags);
|
|
spin_unlock_irqrestore(&fd->dd->uctxt_lock, flags);
|
|
|
|
+ hfi1_rcd_put(fd->uctxt);
|
|
|
|
+ fd->uctxt = NULL;
|
|
}
|
|
}
|
|
|
|
|
|
return ret;
|
|
return ret;
|