diff options
author | Dave Chinner <[email protected]> | 2013-09-03 10:06:58 +1000 |
---|---|---|
committer | Ben Myers <[email protected]> | 2013-09-09 17:43:58 -0500 |
commit | 0f295a214bb7658ca37bd61a8a1f0cd4a9d86c1f (patch) | |
tree | a5909bdca6ea1a287717d6b88dc76b4fd72f3688 /drivers/message/fusion/lsi/mpi_raid.h | |
parent | a30b0367978f75a2659c71b33739e5e445a363c8 (diff) |
xfs: check magic numbers in dir3 leaf verifier first
Calling xfs_dir3_leaf_hdr_from_disk() in a verifier before
validating the magic numbers in the buffer results in ASSERT
failures due to mismatching magic numbers when a corruption occurs.
Seeing as the verifier is supposed to catch the corruption and pass
it back to the caller, having the verifier assert fail on error
defeats the purpose of detecting the errors in the first place.
Check the magic numbers direct from the buffer before decoding the
header.
Signed-off-by: Dave Chinner <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Ben Myers <[email protected]>
Diffstat (limited to 'drivers/message/fusion/lsi/mpi_raid.h')
0 files changed, 0 insertions, 0 deletions