summaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2017-02-13 22:52:27 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2017-02-16 17:20:12 -0800
commit93aaead52a9eebdc20dc8fa673c350e592a06949 (patch)
tree15fba69c097954f288f6ab1f4644e8a7e0272370 /fs/xfs
parent75d65361cf3c0dae2af970c305e19c727b28a510 (diff)
downloadtalos-obmc-linux-93aaead52a9eebdc20dc8fa673c350e592a06949.tar.gz
talos-obmc-linux-93aaead52a9eebdc20dc8fa673c350e592a06949.zip
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')
-rw-r--r--fs/xfs/xfs_reflink.c2
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);
OpenPOWER on IntegriCloud