From b36954ff488844dbe581f82763b24b841de9c49f Mon Sep 17 00:00:00 2001 From: Li Xi Date: Sat, 24 Oct 2015 13:36:00 +0800 Subject: [PATCH] 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 --- lustre/ofd/ofd_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 1.8.3.1