diff options
-rw-r--r-- | fs/xfs/xfs_vnodeops.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c index 2d57aae0e310..4547608b46c4 100644 --- a/fs/xfs/xfs_vnodeops.c +++ b/fs/xfs/xfs_vnodeops.c | |||
@@ -3034,6 +3034,8 @@ xfs_zero_remaining_bytes( | |||
3034 | bp = xfs_buf_get_noaddr(mp->m_sb.sb_blocksize, | 3034 | bp = xfs_buf_get_noaddr(mp->m_sb.sb_blocksize, |
3035 | XFS_IS_REALTIME_INODE(ip) ? | 3035 | XFS_IS_REALTIME_INODE(ip) ? |
3036 | mp->m_rtdev_targp : mp->m_ddev_targp); | 3036 | mp->m_rtdev_targp : mp->m_ddev_targp); |
3037 | if (!bp) | ||
3038 | return XFS_ERROR(ENOMEM); | ||
3037 | 3039 | ||
3038 | for (offset = startoff; offset <= endoff; offset = lastoffset + 1) { | 3040 | for (offset = startoff; offset <= endoff; offset = lastoffset + 1) { |
3039 | offset_fsb = XFS_B_TO_FSBT(mp, offset); | 3041 | offset_fsb = XFS_B_TO_FSBT(mp, offset); |