X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosp%2Fosp_dev.c;h=cc4a1ae371da2a5011320e16b434017278c642b5;hp=a5819ca6aa69b1010f0261101cc2859bc13ff6a7;hb=d46a76cd7bb2b657a6daabbe18b993abeedb2d94;hpb=86dc491a90fd3fcbd329d8844b7398a40e59644e diff --git a/lustre/osp/osp_dev.c b/lustre/osp/osp_dev.c index a5819ca..cc4a1ae 100644 --- a/lustre/osp/osp_dev.c +++ b/lustre/osp/osp_dev.c @@ -665,7 +665,7 @@ static int osp_init0(const struct lu_env *env, struct osp_device *m, OBD_ALLOC(cli->cl_rpc_lock, sizeof(*cli->cl_rpc_lock)); if (!cli->cl_rpc_lock) - RETURN(-ENOMEM); + GOTO(out_fini, rc = -ENOMEM); osp_init_rpc_lock(cli->cl_rpc_lock); }