Commit cdeeb75e authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: fix a mount error path

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent a62c78a7
......@@ -1597,7 +1597,7 @@ static struct bch_fs *__bch2_open_as_blockdevs(const char *dev_name, char * cons
*/
c1 = bch2_path_to_fs(devs[0]);
if (!c1)
if (IS_ERR(c1))
return c;
for (i = 1; i < nr_devs; i++) {
......
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