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) ...@@ -771,7 +771,8 @@ static int lustre_stop_mgc(struct super_block *sb)
/* Clean the nid uuids */ /* Clean the nid uuids */
if (!niduuid) if (!niduuid)
RETURN(-ENOMEM); GOTO(out, rc = -ENOMEM);
for (i = 0; i < lsi->lsi_lmd->lmd_mgs_failnodes; i++) { for (i = 0; i < lsi->lsi_lmd->lmd_mgs_failnodes; i++) {
sprintf(ptr, "_%x", i); sprintf(ptr, "_%x", i);
rc = do_lcfg(LUSTRE_MGC_OBDNAME, 0, LCFG_DEL_UUID, rc = do_lcfg(LUSTRE_MGC_OBDNAME, 0, LCFG_DEL_UUID,
...@@ -780,10 +781,11 @@ static int lustre_stop_mgc(struct super_block *sb) ...@@ -780,10 +781,11 @@ static int lustre_stop_mgc(struct super_block *sb)
CERROR("del MDC UUID %s failed: rc = %d\n", CERROR("del MDC UUID %s failed: rc = %d\n",
niduuid, rc); niduuid, rc);
} }
OBD_FREE(niduuid, len);
/* class_import_put will get rid of the additional connections */
out: out:
if (niduuid)
OBD_FREE(niduuid, len);
/* class_import_put will get rid of the additional connections */
mutex_up(&mgc_start_lock); mutex_up(&mgc_start_lock);
RETURN(rc); 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