diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-02-13 22:52:27 -0800 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-02-16 17:20:12 -0800 |
commit | 93aaead52a9eebdc20dc8fa673c350e592a06949 (patch) | |
tree | 15fba69c097954f288f6ab1f4644e8a7e0272370 | |
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>
-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( 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); |