Whamcloud - gitweb
LU-17690 quota: uninitialized var in qmt_lgd_extend_cb() 10/54610/2
authorAlex Zhuravlev <bzzz@whamcloud.com>
Thu, 28 Mar 2024 17:32:46 +0000 (20:32 +0300)
committerOleg Drokin <green@whamcloud.com>
Mon, 8 Apr 2024 15:44:22 +0000 (15:44 +0000)
fix false warning

Test-Parameters: trivial
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I30e530119edd34c2a73487af4cbcc7ee9da46725
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54610
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/quota/qmt_pool.c

index 66c4aa4..6d08e9e 100644 (file)
@@ -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);