Whamcloud - gitweb
Branch HEAD
authorhuanghua <huanghua>
Wed, 1 Apr 2009 14:39:22 +0000 (14:39 +0000)
committerhuanghua <huanghua>
Wed, 1 Apr 2009 14:39:22 +0000 (14:39 +0000)
b=18796
i=tappro
i=vladimir.saveliev

correct error handling.

lustre/ptlrpc/llog_client.c

index 2dfd086..bded4c3 100644 (file)
@@ -113,6 +113,7 @@ static int llog_client_create(struct llog_ctxt *ctxt, struct llog_handle **res,
                                  LLOG_ORIGIN_HANDLE_CREATE);
         if (rc) {
                 ptlrpc_request_free(req);
+                req = NULL;
                 GOTO(err_free, rc);
         }
         ptlrpc_request_set_replen(req);