lprocfs_exp_rd_hash, NULL, new_stat, NULL);
if (IS_ERR(entry)) {
CWARN("Error adding the hash file\n");
- lprocfs_remove(&new_stat->nid_proc);
rc = PTR_ERR(entry);
GOTO(destroy_new_ns, rc);
}
RETURN(rc);
destroy_new_ns:
+ if (new_stat->nid_proc != NULL)
+ lprocfs_remove(&new_stat->nid_proc);
lustre_hash_del(obd->obd_nid_stats_hash, nid, &new_stat->nid_hash);
OBD_FREE_PTR(new_ns_uuid);