]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - libxfs/libxfs_priv.h
xfs: explicitly pass buffer size to xfs_corruption_error
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 28 Jun 2018 20:11:58 +0000 (15:11 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 28 Jun 2018 20:11:58 +0000 (15:11 -0500)
commit3177b915d101ded316b3e32d1a966815dab17516
tree251c0b4989c8b1b44b34c6522bc2606b142b8fd0
parent7cf9f8168b6f87d9ea3c559a00ed2cff88a4d40a
xfs: explicitly pass buffer size to xfs_corruption_error

Source kernel commit: 2551a53053de52993be8752731f084fad3cfc4d8

Explicitly pass the buffer length to xfs_corruption_error() instead of
assuming XFS_CORRUPTION_DUMP_LEN so that we avoid dumping off the end
of the buffer.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/libxfs_priv.h
libxfs/xfs_btree.c
libxfs/xfs_da_btree.c
libxfs/xfs_dir2_data.c
libxfs/xfs_dir2_leaf.c
libxfs/xfs_dir2_node.c