Commit c6422617 authored by Lachlan McIlroy's avatar Lachlan McIlroy

[XFS] Check return value of xfs_buf_get_noaddr()

We check the return value of all other calls to xfs_buf_get_noaddr().
Make sense to do it here too.
Signed-off-by: default avatarLachlan McIlroy <lachlan@sgi.com>
Reviewed-by: default avatarChristoph Hellwig <hch@infradead.org>
Reviewed-by: default avatarEric Sandeen <sandeen@sandeen.net>
parent 6a0775a9
...@@ -3034,6 +3034,8 @@ xfs_zero_remaining_bytes( ...@@ -3034,6 +3034,8 @@ xfs_zero_remaining_bytes(
bp = xfs_buf_get_noaddr(mp->m_sb.sb_blocksize, bp = xfs_buf_get_noaddr(mp->m_sb.sb_blocksize,
XFS_IS_REALTIME_INODE(ip) ? XFS_IS_REALTIME_INODE(ip) ?
mp->m_rtdev_targp : mp->m_ddev_targp); mp->m_rtdev_targp : mp->m_ddev_targp);
if (!bp)
return XFS_ERROR(ENOMEM);
for (offset = startoff; offset <= endoff; offset = lastoffset + 1) { for (offset = startoff; offset <= endoff; offset = lastoffset + 1) {
offset_fsb = XFS_B_TO_FSBT(mp, offset); offset_fsb = XFS_B_TO_FSBT(mp, offset);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment