From 4523c120e5425f605768ced378ac49ca2baca993 Mon Sep 17 00:00:00 2001 From: anserper Date: Wed, 17 Dec 2008 15:17:08 +0000 Subject: [PATCH] b=17905 i=Johann Lombardi i=Alexey Lyahskov zero dchild for not to oops on dereferncing ERR_PTR --- lustre/mds/mds_reint.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/mds/mds_reint.c b/lustre/mds/mds_reint.c index f76410a..b6ce9f7 100644 --- a/lustre/mds/mds_reint.c +++ b/lustre/mds/mds_reint.c @@ -1011,6 +1011,7 @@ static int mds_reint_create(struct mds_update_record *rec, int offset, dchild = mds_lookup(obd, rec->ur_name, dparent, rec->ur_namelen - 1); if (IS_ERR(dchild)) { rc = PTR_ERR(dchild); + dchild = NULL; CDEBUG(D_DENTRY, "child lookup error %d\n", rc); GOTO(cleanup, rc); } -- 1.8.3.1