Whamcloud - gitweb
b=17905
authoranserper <anserper>
Wed, 17 Dec 2008 15:17:08 +0000 (15:17 +0000)
committeranserper <anserper>
Wed, 17 Dec 2008 15:17:08 +0000 (15:17 +0000)
i=Johann Lombardi
i=Alexey Lyahskov
zero dchild for not to oops on dereferncing ERR_PTR

lustre/mds/mds_reint.c

index f76410a..b6ce9f7 100644 (file)
@@ -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);
         }