mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
bcachefs: Fix an error path
It's possible to get -EIO in __btree_iter_traverse_all() after looping, with orig_iter NULL. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
8de819f834
commit
ab9ff73322
@ -1010,8 +1010,11 @@ retry_all:
|
||||
|
||||
if (unlikely(ret == -EIO)) {
|
||||
trans->error = true;
|
||||
orig_iter->flags |= BTREE_ITER_ERROR;
|
||||
orig_iter->l[orig_iter->level].b = BTREE_ITER_NO_NODE_ERROR;
|
||||
if (orig_iter) {
|
||||
orig_iter->flags |= BTREE_ITER_ERROR;
|
||||
orig_iter->l[orig_iter->level].b =
|
||||
BTREE_ITER_NO_NODE_ERROR;
|
||||
}
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user