diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-02-14 01:52:27 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-08 03:30:31 -0400 |
commit | e5e2e56fd4dd808dcd5a81244da2598290fb7782 (patch) | |
tree | 48f3a1137dff0b3eaffcc7bfdf3edfe0f3dde0ac | |
parent | c251c6c2dec99562a0075c08d31257cff1bc1158 (diff) |
xfs: fix uninitialized variable in _reflink_convert_cow
commit 93aaead52a9eebdc20dc8fa673c350e592a06949 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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 36c07b12189e..eff070accf04 100644 --- a/fs/xfs/xfs_reflink.c +++ b/fs/xfs/xfs_reflink.c | |||
@@ -363,7 +363,7 @@ xfs_reflink_convert_cow( | |||
363 | xfs_fileoff_t end_fsb = XFS_B_TO_FSB(mp, offset + count); | 363 | xfs_fileoff_t end_fsb = XFS_B_TO_FSB(mp, offset + count); |
364 | xfs_extnum_t idx; | 364 | xfs_extnum_t idx; |
365 | bool found; | 365 | bool found; |
366 | int error; | 366 | int error = 0; |
367 | 367 | ||
368 | xfs_ilock(ip, XFS_ILOCK_EXCL); | 368 | xfs_ilock(ip, XFS_ILOCK_EXCL); |
369 | 369 | ||