@@ -1091,7 +1091,9 @@ static int ll_lease_och_release(struct inode *inode, struct file *file)
goto out_release_it;
LASSERT(it_disposition(&it, DISP_ENQ_OPEN_REF));
- ll_och_fill(sbi->ll_md_exp, &it, och);
+ rc = ll_och_fill(sbi->ll_md_exp, &it, och);
+ if (rc)
+ goto out_release_it;
if (!it_disposition(&it, DISP_OPEN_LEASE)) /* old server? */ {
rc = -EOPNOTSUPP;
@@ -2225,7 +2227,9 @@ int ll_release_openhandle(struct inode *inode, struct lookup_intent *it)
goto out;
}
- ll_och_fill(ll_i2sbi(inode)->ll_md_exp, it, och);
+ rc = ll_och_fill(ll_i2sbi(inode)->ll_md_exp, it, och);
+ if (rc)
+ goto out;
rc = ll_close_inode_openhandle(inode, och, 0, NULL);
out: