From bd68dc284b688863a3d6b8b8623822a487bbcc0a Mon Sep 17 00:00:00 2001 From: tappro Date: Sat, 21 Oct 2006 10:00:42 +0000 Subject: [PATCH] - init ma_valid before usage --- lustre/cmm/cmm_object.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/cmm/cmm_object.c b/lustre/cmm/cmm_object.c index e5526fd..b83c71f 100644 --- a/lustre/cmm/cmm_object.c +++ b/lustre/cmm/cmm_object.c @@ -486,7 +486,7 @@ static int __cmm_mode_get(const struct lu_env *env, struct md_device *md, LASSERT(cmi); tmp_ma = &cmi->cmi_ma; tmp_ma->ma_need = MA_INODE; - + tmp_ma->ma_valid = 0; /* get type from src, can be remote req */ rc = mo_attr_get(env, md_object_next(mo_s), tmp_ma); if (rc == 0) { @@ -812,6 +812,7 @@ static int cmr_create(const struct lu_env *env, struct md_object *mo_p, cmi = cmm_env_info(env); LASSERT(cmi); tmp_ma = &cmi->cmi_ma; + tmp_ma->valid = 0; tmp_ma->ma_need = MA_INODE; #ifdef CONFIG_FS_POSIX_ACL -- 1.8.3.1