bcachefs: fix a mount error path

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2019-05-21 13:42:02 -04:00 committed by Kent Overstreet
parent a62c78a794
commit cdeeb75ea9

View File

@ -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++) {