From 440b29d7eeb4fde02b9065aa97f149a934d37a62 Mon Sep 17 00:00:00 2001 From: adilger Date: Fri, 30 Jul 2004 21:53:55 +0000 Subject: [PATCH] Fix error handling. --- lustre/mds/handler.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: -- 1.8.3.1