diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-02-14 01:52:27 -0500 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-02-16 20:20:12 -0500 |
commit | 93aaead52a9eebdc20dc8fa673c350e592a06949 (patch) | |
tree | 15fba69c097954f288f6ab1f4644e8a7e0272370 /fs/xfs/xfs_reflink.c | |
parent | 75d65361cf3c0dae2af970c305e19c727b28a510 (diff) |
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>
Diffstat (limited to 'fs/xfs/xfs_reflink.c')
-rw-r--r-- | fs/xfs/xfs_reflink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_reflink.c b/fs/xfs/xfs_reflink.c index 2f3d2d5c2934..da6d08fb359c 100644 --- a/fs/xfs/xfs_reflink.c +++ b/fs/xfs/xfs_reflink.c | |||
@@ -362,7 +362,7 @@ xfs_reflink_convert_cow( | |||
362 | xfs_fileoff_t end_fsb = XFS_B_TO_FSB(mp, offset + count); | 362 | xfs_fileoff_t end_fsb = XFS_B_TO_FSB(mp, offset + count); |
363 | xfs_extnum_t idx; | 363 | xfs_extnum_t idx; |
364 | bool found; | 364 | bool found; |
365 | int error; | 365 | int error = 0; |
366 | 366 | ||
367 | xfs_ilock(ip, XFS_ILOCK_EXCL); | 367 | xfs_ilock(ip, XFS_ILOCK_EXCL); |
368 | 368 | ||