From 83c9a8be703ee2753457473ddb6a5256e3805188 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 15 Aug 2005 22:00:00 +0000 Subject: [PATCH] - drop dchild to NULL in order to prevent further access at cleanup --- lustre/mds/handler.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index d943ccf..2f8c513 100644 --- 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])); } -- 1.8.3.1