From b6a08306f1ee630d5c9061eef707766d6eaea2b7 Mon Sep 17 00:00:00 2001 From: yury Date: Fri, 25 Mar 2005 13:46:03 +0000 Subject: [PATCH] - fixed ability of variables being used uninitialized in mds_get_parent_child(ren)_locked() d=85 --- lustre/mds/mds_reint.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lustre/mds/mds_reint.c b/lustre/mds/mds_reint.c index de5d014..8753866 100644 --- a/lustre/mds/mds_reint.c +++ b/lustre/mds/mds_reint.c @@ -1386,7 +1386,7 @@ int mds_get_parent_child_locked(struct obd_device *obd, struct mds_obd *mds, ldlm_policy_data_t child_policy = {.l_inodebits = { child_lockpart }}; struct ldlm_res_id parent_res_id = { .name = {0} }; struct ldlm_res_id child_res_id = { .name = {0} }; - unsigned long child_ino; __u32 child_gen; + unsigned long child_ino = 0; __u32 child_gen = 0; int rc = 0, cleanup_phase = 0; struct lustre_id sid; struct inode *inode; @@ -2572,9 +2572,10 @@ static int mds_get_parents_children_locked(struct obd_device *obd, struct ldlm_res_id *maxres_src, *maxres_tgt; struct inode *inode; int rc = 0, cleanup_phase = 0; - __u32 child_gen1, child_gen2; - unsigned long child_ino1; - unsigned long child_ino2; + __u32 child_gen1 = 0; + __u32 child_gen2 = 0; + unsigned long child_ino1 = 0; + unsigned long child_ino2 = 0; ENTRY; /* Step 1: Lookup the source directory */ -- 1.8.3.1