Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-658 liblustre: free sbi too early
[fs/lustre-release.git]
/
lustre
/
liblustre
/
super.c
diff --git
a/lustre/liblustre/super.c
b/lustre/liblustre/super.c
index
9e6972f
..
3f3788a
100644
(file)
--- a/
lustre/liblustre/super.c
+++ b/
lustre/liblustre/super.c
@@
-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(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;
}
liblustre_wait_idle();
return err;
}