if (mfd == NULL) {
DEBUG_CAPA(D_INFO, req_capa, "no handle "LPX64" for",
req_body->handle.cookie);
- RETURN(-ESTALE);
+ RETURN(-ENOENT);
}
mode = accmode(mfd->mfd_mode);
memcpy(key, CUR_CAPA_KEY(mds)->lk_key, sizeof(key));
spin_unlock(&mds_capa_lock);
- capa_hmac(mds->mds_capa_hmac, key, capa);
+ capa_hmac(key, capa);
ocapa = capa_renew(capa, MDS_CAPA);
if (!ocapa)
rc = -ENOMEM;
+ capa_put(ocapa);
out:
if (rc == 0)
body->valid |= OBD_MD_CAPA;