diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c index 993e1bab0a6b33fa95f33e54c08dbc2f00c2de81..0dc05bb856fffe78fb98c6a1b1002fa09e4c11c2 100644 --- a/fs/btrfs/send.c +++ b/fs/btrfs/send.c @@ -3200,6 +3200,8 @@ static int apply_dir_move(struct send_ctx *sctx, struct pending_dir_move *pm) sctx->send_progress = sctx->cur_ino + 1; ret = path_loop(sctx, name, pm->ino, pm->gen, &ancestor); + if (ret < 0) + goto out; if (ret) { LIST_HEAD(deleted_refs); ASSERT(ancestor > BTRFS_FIRST_FREE_OBJECTID);