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:
1d9f6c6
)
- drop dchild to NULL in order to prevent further access at cleanup
author
alex
<alex>
Mon, 15 Aug 2005 22:00:00 +0000
(22:00 +0000)
committer
alex
<alex>
Mon, 15 Aug 2005 22:00:00 +0000
(22:00 +0000)
lustre/mds/handler.c
patch
|
blob
|
history
diff --git
a/lustre/mds/handler.c
b/lustre/mds/handler.c
index
d943ccf
..
2f8c513
100644
(file)
--- a/
lustre/mds/handler.c
+++ b/
lustre/mds/handler.c
@@
-1622,7
+1622,9
@@
static int mds_getattr_lock(struct ptlrpc_request *req, int offset,
if (IS_ERR(dchild)) {
CERROR("can't find inode with id "DLID4", err = %d\n",
OLID4(&body->id1), (int)PTR_ERR(dchild));
- GOTO(cleanup, rc = PTR_ERR(dchild));
+ rc = PTR_ERR(dchild);
+ dchild = NULL;
+ GOTO(cleanup, rc);
}
memcpy(child_lockh, parent_lockh, sizeof(parent_lockh[0]));
}