diff options
author | Kent Overstreet <[email protected]> | 2019-04-22 17:47:49 -0400 |
---|---|---|
committer | Kent Overstreet <[email protected]> | 2023-10-22 17:08:21 -0400 |
commit | 9516950c0690b6a8bef4cc1c7ae269da996973d8 (patch) | |
tree | d900406168bc89914422d1da6fde324d59aa1124 | |
parent | 44e63bcaaaa2100677d1d95c3a0ebe370493f2f9 (diff) |
bcachefs: Fix return code from bch2_fs_start()
Signed-off-by: Kent Overstreet <[email protected]>
-rw-r--r-- | fs/bcachefs/super.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c index 654ccc611099..4c54ac64b0af 100644 --- a/fs/bcachefs/super.c +++ b/fs/bcachefs/super.c @@ -897,7 +897,8 @@ err: break; } - BUG_ON(!ret); + if (ret >= 0) + ret = -EIO; goto out; } |