From: Alex Zhuravlev Date: Thu, 28 Mar 2024 17:32:46 +0000 (+0300) Subject: LU-17690 quota: uninitialized var in qmt_lgd_extend_cb() X-Git-Tag: 2.15.62~1 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=b53aa99294fea1505375b05d550c492dd06c279e;p=fs%2Flustre-release.git LU-17690 quota: uninitialized var in qmt_lgd_extend_cb() fix false warning Test-Parameters: trivial Signed-off-by: Alex Zhuravlev Change-Id: I30e530119edd34c2a73487af4cbcc7ee9da46725 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54610 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Arshad Hussain Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- diff --git a/lustre/quota/qmt_pool.c b/lustre/quota/qmt_pool.c index 66c4aa4..6d08e9e 100644 --- a/lustre/quota/qmt_pool.c +++ b/lustre/quota/qmt_pool.c @@ -705,7 +705,7 @@ static int qmt_lgd_extend_cb(struct cfs_hash *hs, struct cfs_hash_bd *bd, { struct lqe_glbl_entry *lqeg_arr, *old_lqeg_arr; struct lquota_entry *lqe; - int old_num, rc; + int old_num = 0, rc; lqe = hlist_entry(hnode, struct lquota_entry, lqe_hash); LASSERT(atomic_read(&lqe->lqe_ref) > 0);