From: Li Xi Date: Sat, 24 Oct 2015 05:36:00 +0000 (+0800) Subject: LU-7336 ofd: cleanup proc when ofd_info_init fails X-Git-Tag: 2.7.63~14 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F34%2F16934%2F3;p=fs%2Flustre-release.git LU-7336 ofd: cleanup proc when ofd_info_init fails In ofd_init0(), if ofd_info_init() fails it should cleanup procs. Signed-off-by: Li Xi Change-Id: I3ff278526f09ef7e36631712ce21a498a6644907 Reviewed-on: http://review.whamcloud.com/16934 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Emoly Liu Reviewed-by: Bobi Jam Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- diff --git a/lustre/ofd/ofd_dev.c b/lustre/ofd/ofd_dev.c index c06c0fc..57b3bdd 100644 --- a/lustre/ofd/ofd_dev.c +++ b/lustre/ofd/ofd_dev.c @@ -2797,7 +2797,7 @@ static int ofd_init0(const struct lu_env *env, struct ofd_device *m, info = ofd_info_init(env, NULL); if (info == NULL) - RETURN(-EFAULT); + GOTO(err_fini_proc, rc = -EFAULT); rc = ofd_stack_init(env, m, cfg); if (rc) {