X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fobdclass%2Fobd_config.c;h=869e64c705211cc9eb949acc297412dfc27a0283;hp=1c02fd6985d4068908005183a4dadfc4bf9896e1;hb=1db90b29ad676c2cf1888ef5a7c623161ff23bf9;hpb=2b0a34fe43bf4fce5560af61a45e5393c96070a9;ds=sidebyside diff --git a/lustre/obdclass/obd_config.c b/lustre/obdclass/obd_config.c index 1c02fd6..869e64c 100644 --- a/lustre/obdclass/obd_config.c +++ b/lustre/obdclass/obd_config.c @@ -1712,8 +1712,7 @@ int class_config_llog_handler(const struct lu_env *env, if (cfg->cfg_instance && lcfg->lcfg_command != LCFG_SPTLRPC_CONF && LUSTRE_CFG_BUFLEN(lcfg, 0) > 0) { - inst_len = LUSTRE_CFG_BUFLEN(lcfg, 0) + - sizeof(cfg->cfg_instance) * 2 + 4; + inst_len = LUSTRE_CFG_BUFLEN(lcfg, 0) + 16 + 4; OBD_ALLOC(inst_name, inst_len); if (inst_name == NULL) GOTO(out, rc = -ENOMEM);