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-5588 mdt: fix NULL pointer 'obd' can be dereferenced
[fs/lustre-release.git]
/
lustre
/
mdt
/
mdt_handler.c
diff --git
a/lustre/mdt/mdt_handler.c
b/lustre/mdt/mdt_handler.c
index
0f246aa
..
409f556
100644
(file)
--- a/
lustre/mdt/mdt_handler.c
+++ b/
lustre/mdt/mdt_handler.c
@@
-3992,7
+3992,7
@@
static int mdt_stack_init(const struct lu_env *env, struct mdt_device *mdt,
if (!obd) {
CERROR("Can not find obd %s (%s in config)\n",
MDD_OBD_NAME, lustre_cfg_string(cfg, 0));
if (!obd) {
CERROR("Can not find obd %s (%s in config)\n",
MDD_OBD_NAME, lustre_cfg_string(cfg, 0));
- GOTO(
class_detach
, rc = -EINVAL);
+ GOTO(
lcfg_cleanup
, rc = -EINVAL);
}
lustre_cfg_free(lcfg);
}
lustre_cfg_free(lcfg);
@@
-4120,7
+4120,7
@@
static int mdt_quota_init(const struct lu_env *env, struct mdt_device *mdt,
if (!obd) {
CERROR("Can not find obd %s (%s in config)\n", qmtname,
lustre_cfg_string(cfg, 0));
if (!obd) {
CERROR("Can not find obd %s (%s in config)\n", qmtname,
lustre_cfg_string(cfg, 0));
- GOTO(
class_detach
, rc = -EINVAL);
+ GOTO(
lcfg_cleanup
, rc = -EINVAL);
}
lustre_cfg_free(lcfg);
}
lustre_cfg_free(lcfg);