Commit 62baf68a authored by Joe Thornber's avatar Joe Thornber Committed by Linus Torvalds

[PATCH] dm: bug in error path for unknown target type

Silly mistake in error path when an unknown target type is requested.
parent f8619747
No related merge requests found
......@@ -591,7 +591,7 @@ int dm_table_add_target(struct dm_table *t, const char *type,
tgt->type = dm_get_target_type(type);
if (!tgt->type) {
tgt->error = "unknown target type";
goto bad;
return r;
}
tgt->table = t;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment