Skip to content

Commit

Permalink
bcachefs: Fix return code from bch2_fs_start()
Browse files Browse the repository at this point in the history
  • Loading branch information
koverstreet committed Apr 22, 2019
1 parent 27c447e commit 990250b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/bcachefs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,8 @@ int bch2_fs_start(struct bch_fs *c)
break;
}

BUG_ON(!ret);
if (ret >= 0)
ret = -EIO;
goto out;
}

Expand Down

0 comments on commit 990250b

Please sign in to comment.