Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0de145
)
b=17905
author
anserper
<anserper>
Wed, 17 Dec 2008 15:17:08 +0000
(15:17 +0000)
committer
anserper
<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
patch
|
blob
|
history
diff --git
a/lustre/mds/mds_reint.c
b/lustre/mds/mds_reint.c
index
f76410a
..
b6ce9f7
100644
(file)
--- 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);
}