diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-06-04 01:10:18 +0200 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2018-06-04 23:45:30 +0200 |
commit | 924cade4df49e7c9fddcbae678dbd9dee3b0aeb6 (patch) | |
tree | cf1ada3976b328ba3ff31aa7803c19b17ef76614 /crypto/xcbc.c | |
parent | xfs: don't ASSERT on short form btree root pointer of zero (diff) | |
download | linux-924cade4df49e7c9fddcbae678dbd9dee3b0aeb6.tar.xz linux-924cade4df49e7c9fddcbae678dbd9dee3b0aeb6.zip |
xfs: don't return garbage buffers in xfs_da3_node_read
If we're reading a node in a dir/attr btree and the buffer comes off the
disk with a magic number we don't recognize, don't ASSERT and don't set
a garbage buffer type (0 also triggers ASSERTs). Instead, report the
corruption, release the buffer, and return -EFSCORRUPTED because that's
what the dabtree is -- corrupt.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'crypto/xcbc.c')
0 files changed, 0 insertions, 0 deletions