xfs: set firstfsb to NULLFSBLOCK before feeding it to _bmapi_write
We must initialize the firstfsb parameter to _bmapi_write so that it doesn't incorrectly treat stack garbage as a restriction on which AGs it can search for free space. Fixes-coverity-id: 1402025 Fixes-coverity-id: 1415167 Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Brian Foster <bfoster@redhat.com>
This commit is contained in:
@@ -329,7 +329,7 @@ xfs_reflink_convert_cow_extent(
|
||||
xfs_filblks_t count_fsb,
|
||||
struct xfs_defer_ops *dfops)
|
||||
{
|
||||
xfs_fsblock_t first_block;
|
||||
xfs_fsblock_t first_block = NULLFSBLOCK;
|
||||
int nimaps = 1;
|
||||
|
||||
if (imap->br_state == XFS_EXT_NORM)
|
||||
|
Reference in New Issue
Block a user