Unverified Commit ed0fbaa8 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!7670 btrfs: send: handle path ref underflow in header iterate_inode_ref()

parents a4456347 df5290b8
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -966,7 +966,15 @@ static int iterate_inode_ref(struct btrfs_root *root, struct btrfs_path *path,
					ret = PTR_ERR(start);
					goto out;
				}
				BUG_ON(start < p->buf);
				if (unlikely(start < p->buf)) {
					btrfs_err(root->fs_info,
			"send: path ref buffer underflow for key (%llu %u %llu)",
						  found_key->objectid,
						  found_key->type,
						  found_key->offset);
					ret = -EINVAL;
					goto out;
				}
			}
			p->start = start;
		} else {