diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-02-14 09:52:27 +0300 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-02-17 04:20:12 +0300 |
commit | 93aaead52a9eebdc20dc8fa673c350e592a06949 (patch) | |
tree | 15fba69c097954f288f6ab1f4644e8a7e0272370 /fs/xfs/xfs_reflink.c | |
parent | 75d65361cf3c0dae2af970c305e19c727b28a510 (diff) | |
download | linux-93aaead52a9eebdc20dc8fa673c350e592a06949.tar.xz |
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( 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); |