Skip to content
Snippets Groups Projects
Commit 8581227a authored by Andreas Dilger's avatar Andreas Dilger
Browse files

Branch b1_6

Remove shadow variable, quiet use-before-free.
parent 185bddb3
No related branches found
No related tags found
No related merge requests found
......@@ -1238,7 +1238,7 @@ static int lov_destroy(struct obd_export *exp, struct obdo *oa,
struct lov_request *req;
struct list_head *pos;
struct lov_obd *lov;
int rc = 0, err;
int rc = 0, err = 0;
ENTRY;
ASSERT_LSM_MAGIC(lsm);
......@@ -1258,7 +1258,6 @@ static int lov_destroy(struct obd_export *exp, struct obdo *oa,
GOTO(out, rc);
list_for_each (pos, &set->set_list) {
int err;
req = list_entry(pos, struct lov_request, rq_link);
if (oa->o_valid & OBD_MD_FLCOOKIE)
......
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