diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2017-02-14 09:52:27 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-08 10:35:04 +0300 |
commit | a3aca9b42d6fe8a9c8e89dc9af59c16ea7593071 (patch) | |
tree | 3e0f002405f748619761c8fa02636825ff5a43fe /fs | |
parent | 1d7babf19237e0fcab0cdb19280afe0c9c0804a3 (diff) | |
download | linux-a3aca9b42d6fe8a9c8e89dc9af59c16ea7593071.tar.xz |
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>
Diffstat (limited to 'fs')
-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 d8c51248e207..22d631b08ee4 100644 --- a/fs/xfs/xfs_reflink.c +++ b/fs/xfs/xfs_reflink.c @@ -363,7 +363,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); |