Skip to content
Snippets Groups Projects
Commit 2761c4f5 authored by Nathan Rutman's avatar Nathan Rutman
Browse files

b=12707

i=adilger
i=nathan
coverity
parent b146d75e
No related branches found
No related tags found
No related merge requests found
......@@ -771,7 +771,8 @@ static int lustre_stop_mgc(struct super_block *sb)
/* Clean the nid uuids */
if (!niduuid)
RETURN(-ENOMEM);
GOTO(out, rc = -ENOMEM);
for (i = 0; i < lsi->lsi_lmd->lmd_mgs_failnodes; i++) {
sprintf(ptr, "_%x", i);
rc = do_lcfg(LUSTRE_MGC_OBDNAME, 0, LCFG_DEL_UUID,
......@@ -780,10 +781,11 @@ static int lustre_stop_mgc(struct super_block *sb)
CERROR("del MDC UUID %s failed: rc = %d\n",
niduuid, rc);
}
OBD_FREE(niduuid, len);
/* class_import_put will get rid of the additional connections */
out:
if (niduuid)
OBD_FREE(niduuid, len);
/* class_import_put will get rid of the additional connections */
mutex_up(&mgc_start_lock);
RETURN(rc);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment