Whamcloud - gitweb
LU-658 liblustre: free sbi too early 07/2107/2
authorBobi Jam <bobijam@whamcloud.com>
Mon, 6 Feb 2012 18:29:07 +0000 (02:29 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 6 Dec 2013 06:37:19 +0000 (06:37 +0000)
llu_fsop_gone will do the job if llu_ffswop_mount runs ok.

Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: I1e3a103589fc5221cc481431c4477c4597cab738
Reviewed-on: http://review.whamcloud.com/2107
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com>
lustre/liblustre/super.c

index 9e6972f..3f3788a 100644 (file)
@@ -2053,7 +2053,8 @@ out_free:
                 OBD_FREE(osc, strlen(lprof->lp_dt) + instlen + 2);
         if (mdc)
                 OBD_FREE(mdc, strlen(lprof->lp_md) + instlen + 2);
-        OBD_FREE(sbi, sizeof(*sbi));
+        if (err != 0)
+                OBD_FREE(sbi, sizeof(*sbi));
         liblustre_wait_idle();
         return err;
 }