diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-08-08 13:54:10 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-11-09 19:07:42 -0800 |
commit | c5cbaefe97353c7f280c220ab0c9b01c3f5d623c (patch) | |
tree | b371d580ab1758fd6c905439091f42ff7e0c3f4e /fs/xfs/scrub | |
parent | 28594e13c19bb150c590d2010bea4a8f7251e749 (diff) |
xfs: validate directory leaf buffer owners
Check the owner field of directory leaf blocks.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/scrub')
-rw-r--r-- | fs/xfs/scrub/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/scrub/dir.c b/fs/xfs/scrub/dir.c index bb752388f994..1146816541cb 100644 --- a/fs/xfs/scrub/dir.c +++ b/fs/xfs/scrub/dir.c @@ -463,7 +463,7 @@ xchk_directory_leaf1_bestfree( int error; /* Read the free space block. */ - error = xfs_dir3_leaf_read(sc->tp, sc->ip, lblk, &bp); + error = xfs_dir3_leaf_read(sc->tp, sc->ip, sc->ip->i_ino, lblk, &bp); if (!xchk_fblock_process_error(sc, XFS_DATA_FORK, lblk, &error)) return error; xchk_buffer_recheck(sc, bp); |