X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fquota%2Fqmt_pool.c;h=755effd0f1249c8700822c2c482124849eb6b457;hp=8d4fee7974887e055b3058a049043026cf637370;hb=f47fd349da02d421c5457a69a95b1e67cbbccb89;hpb=d1231c4d6adf6a2d39c62ed684535e86d9a40bc0 diff --git a/lustre/quota/qmt_pool.c b/lustre/quota/qmt_pool.c index 8d4fee7..755effd 100644 --- a/lustre/quota/qmt_pool.c +++ b/lustre/quota/qmt_pool.c @@ -312,7 +312,7 @@ static inline int qti_pools_add(const struct lu_env *env, LASSERTF(qti->qti_pools_num >= QMT_MAX_POOL_NUM, "Forgot init? %p\n", qti); - if (qti->qti_pools_cnt > qti->qti_pools_num) { + if (qti->qti_pools_cnt >= qti->qti_pools_num) { OBD_ALLOC(pools, sizeof(qpi) * qti->qti_pools_num * 2); if (!pools) return -ENOMEM;