diff options
Diffstat (limited to 'fs/xfs/libxfs/xfs_sb.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_sb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_sb.c b/fs/xfs/libxfs/xfs_sb.c index b5a82acd7dfe..a2f52a958091 100644 --- a/fs/xfs/libxfs/xfs_sb.c +++ b/fs/xfs/libxfs/xfs_sb.c | |||
@@ -225,10 +225,11 @@ xfs_validate_sb_common( | |||
225 | struct xfs_buf *bp, | 225 | struct xfs_buf *bp, |
226 | struct xfs_sb *sbp) | 226 | struct xfs_sb *sbp) |
227 | { | 227 | { |
228 | struct xfs_dsb *dsb = XFS_BUF_TO_SBP(bp); | ||
228 | uint32_t agcount = 0; | 229 | uint32_t agcount = 0; |
229 | uint32_t rem; | 230 | uint32_t rem; |
230 | 231 | ||
231 | if (sbp->sb_magicnum != XFS_SB_MAGIC) { | 232 | if (dsb->sb_magicnum != cpu_to_be32(XFS_SB_MAGIC)) { |
232 | xfs_warn(mp, "bad magic number"); | 233 | xfs_warn(mp, "bad magic number"); |
233 | return -EWRONGFS; | 234 | return -EWRONGFS; |
234 | } | 235 | } |