]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: fix check on struct_version for versions 4 or greater
authorColin Ian King <colin.king@canonical.com>
Tue, 27 Feb 2018 04:43:18 +0000 (22:43 -0600)
committerEric Sandeen <sandeen@redhat.com>
Tue, 27 Feb 2018 04:43:18 +0000 (22:43 -0600)
commitdfcfc5f1aac7eb29d94eca4d45d9254eb96499a8
treef30d99336d4fbda8689b0c6749f877c699d29bbe
parentd7e71605e73f5c05ac029046d56781b675311592
xfs: fix check on struct_version for versions 4 or greater

Source kernel commit: a8789a5ae28f69d7f3791a0e74f8c44222f3108b

It appears that the check for versions 4 or more is incorrect and is
off-by-one. Fix this.

Detected by CoverityScan, CID#1463775 ("Logically dead code")

Fixes: ac503a4cc9e8 ("xfs: refactor the geometry structure filling function")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_sb.c