1
0
Fork 0

xfs: fix uninitialized variable in _reflink_convert_cow

Fix an uninitialize variable.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
hifive-unleashed-5.1
Darrick J. Wong 2017-02-13 22:52:27 -08:00
parent 75d65361cf
commit 93aaead52a
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,7 @@ xfs_reflink_convert_cow(
xfs_fileoff_t end_fsb = XFS_B_TO_FSB(mp, offset + count);
xfs_extnum_t idx;
bool found;
int error;
int error = 0;
xfs_ilock(ip, XFS_ILOCK_EXCL);