o=huanghua
i=nathan
i=kalpak
fix possible memory leak in mdd_dot_lustre_setup() and create_dot_lustre_dir()
+ if (!IS_ERR(mdo))
+ lu_object_put(env, &mdo->mo_lu);
+
m->mdd_dot_lustre = lu2mdd_obj(lu_object_locate(dt_dot_lustre->do_lu.lo_header,
&mdd_device_type));
m->mdd_dot_lustre = lu2mdd_obj(lu_object_locate(dt_dot_lustre->do_lu.lo_header,
&mdd_device_type));
- lu_object_put(env, &dt_dot_lustre->do_lu);
-
m->mdd_dot_lustre->mod_obj.mo_dir_ops = &mdd_dot_lustre_dir_ops;
m->mdd_dot_lustre->mod_obj.mo_ops = &mdd_dot_lustre_obj_ops;
m->mdd_dot_lustre->mod_obj.mo_dir_ops = &mdd_dot_lustre_dir_ops;
m->mdd_dot_lustre->mod_obj.mo_ops = &mdd_dot_lustre_obj_ops;