From: alex Date: Mon, 15 Aug 2005 22:00:00 +0000 (+0000) Subject: - drop dchild to NULL in order to prevent further access at cleanup X-Git-Tag: 1.4.10~721 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=83c9a8be703ee2753457473ddb6a5256e3805188;p=fs%2Flustre-release.git - drop dchild to NULL in order to prevent further access at cleanup --- 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])); }