xfs: explicitly pass buffer size to xfs_corruption_error
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 4 Jun 2018 17:23:54 +0000 (10:23 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Tue, 5 Jun 2018 01:25:05 +0000 (18:25 -0700)
commit2551a53053de52993be8752731f084fad3cfc4d8
tree1956959bc2647d950a2ba4325ead3baa3271f7b8
parent85ae01098c1a6a8e3ce908f8808f2d8f8effdbe3
xfs: explicitly pass buffer size to xfs_corruption_error

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>
fs/xfs/libxfs/xfs_btree.c
fs/xfs/libxfs/xfs_da_btree.c
fs/xfs/libxfs/xfs_dir2_data.c
fs/xfs/libxfs/xfs_dir2_leaf.c
fs/xfs/libxfs/xfs_dir2_node.c
fs/xfs/xfs_attr_list.c
fs/xfs/xfs_error.c
fs/xfs/xfs_error.h
fs/xfs/xfs_log_recover.c