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-15 10:18:16 -0800 |
commit | 79142b6536cbf393501fb357fb88c8135f2de174 (patch) | |
tree | 381a6d1900c93731bd07f2f642e3c08f4b05d0e4 | |
parent | e75ec29f835a15eee80abdcd7383bdef2d67d1e8 (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); |