Whamcloud - gitweb
LU-7336 ofd: cleanup proc when ofd_info_init fails 34/16934/3
authorLi Xi <lixi@ddn.com>
Sat, 24 Oct 2015 05:36:00 +0000 (13:36 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 11 Nov 2015 15:38:02 +0000 (15:38 +0000)
In ofd_init0(), if ofd_info_init() fails it should cleanup
procs.

Signed-off-by: Li Xi <lixi@ddn.com>
Change-Id: I3ff278526f09ef7e36631712ce21a498a6644907
Reviewed-on: http://review.whamcloud.com/16934
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Emoly Liu <emoly.liu@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ofd/ofd_dev.c

index c06c0fc..57b3bdd 100644 (file)
@@ -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) {