X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fobdclass%2Fobd_config.c;h=f9fa331b62c65b8dfe5e67af4ef264b11b0ec7f5;hp=49469af7bf171042c16c4ef921dba954333cc909;hb=ed2e4d8205e5b6bc9dc2ad8319ad7666e49e5dfe;hpb=f426fb920e3b97298a603a142d56be89c12f2006 diff --git a/lustre/obdclass/obd_config.c b/lustre/obdclass/obd_config.c index 49469af..f9fa331 100644 --- a/lustre/obdclass/obd_config.c +++ b/lustre/obdclass/obd_config.c @@ -1286,7 +1286,7 @@ static int class_config_llog_handler(struct llog_handle * handle, LUSTRE_CFG_BUFLEN(lcfg, 0) > 0){ inst = 1; inst_len = LUSTRE_CFG_BUFLEN(lcfg, 0) + - sizeof(clli->cfg_instance) * 2 + 1; + sizeof(clli->cfg_instance) * 2 + 4; OBD_ALLOC(inst_name, inst_len); if (inst_name == NULL) GOTO(out, rc = -ENOMEM);