aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/xfs/xfs_log_recover.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c
index 071672969421..b82d5d4d2462 100644
--- a/fs/xfs/xfs_log_recover.c
+++ b/fs/xfs/xfs_log_recover.c
@@ -2912,7 +2912,12 @@ xlog_recover_process_data(
2912 xlog_recover_new_tid(&rhash[hash], tid, 2912 xlog_recover_new_tid(&rhash[hash], tid,
2913 be64_to_cpu(rhead->h_lsn)); 2913 be64_to_cpu(rhead->h_lsn));
2914 } else { 2914 } else {
2915 ASSERT(dp + be32_to_cpu(ohead->oh_len) <= lp); 2915 if (dp + be32_to_cpu(ohead->oh_len) > lp) {
2916 xlog_warn(
2917 "XFS: xlog_recover_process_data: bad length");
2918 WARN_ON(1);
2919 return (XFS_ERROR(EIO));
2920 }
2916 flags = ohead->oh_flags & ~XLOG_END_TRANS; 2921 flags = ohead->oh_flags & ~XLOG_END_TRANS;
2917 if (flags & XLOG_WAS_CONT_TRANS) 2922 if (flags & XLOG_WAS_CONT_TRANS)
2918 flags &= ~XLOG_CONTINUE_TRANS; 2923 flags &= ~XLOG_CONTINUE_TRANS;