]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: check num before bplist[num]
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Apr 2024 17:01:17 +0000 (10:01 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 3 Jun 2024 18:37:42 +0000 (11:37 -0700)
commit842676ed999f0baae79c3de3ad6e2d3b90733f49
tree5b59153637ace984ae8ce1865eb0672fc62797f0
parent017762cce2da17b83fdc9192dd6e64c0fef7d09c
xfs_repair: check num before bplist[num]

smatch complained about checking an array index before indexing the
array, so fix that.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
repair/prefetch.c