From 5d69c15c02e210422f0fe10e471106b4c67bb82b Mon Sep 17 00:00:00 2001 From: tianzy Date: Thu, 4 Jun 2009 03:49:27 +0000 Subject: [PATCH] Branch HEAD fix a minor problem of vfree() b=19598 i=johann i=zhenyu.xu --- lustre/obdclass/class_hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/obdclass/class_hash.c b/lustre/obdclass/class_hash.c index 99998a8..6940f0d 100644 --- a/lustre/obdclass/class_hash.c +++ b/lustre/obdclass/class_hash.c @@ -147,10 +147,10 @@ lustre_hash_exit(lustre_hash_t *lh) write_unlock(&lhb->lhb_rwlock); } - OBD_VFREE(lh->lh_buckets, sizeof(*lh->lh_buckets) << lh->lh_cur_bits); LASSERT(atomic_read(&lh->lh_count) == 0); write_unlock(&lh->lh_rwlock); + OBD_VFREE(lh->lh_buckets, sizeof(*lh->lh_buckets) << lh->lh_cur_bits); OBD_FREE_PTR(lh); EXIT; } -- 1.8.3.1