From: adilger Date: Fri, 30 Jul 2004 21:53:55 +0000 (+0000) Subject: Fix error handling. X-Git-Tag: 1.3.4~525 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=440b29d7eeb4fde02b9065aa97f149a934d37a62;p=fs%2Flustre-release.git Fix error handling. --- diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index 33b6f09..5eec678 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -1406,7 +1406,10 @@ static int mdt_obj_create(struct ptlrpc_request *req) down(&parent_inode->i_sem); handle = fsfilt_start(obd, parent_inode, FSFILT_OP_MKDIR, NULL); - LASSERT(!IS_ERR(handle)); + if (IS_ERR(handle)) { + up(&parent_inode->i_sem); + GOTO(cleanup, rc = PTR_ERR(handle)); + } cleanup_phase = 1; /* transaction */ repeat: