Skip to content

Commit 93aaead

Browse files
committed
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>
1 parent 75d6536 commit 93aaead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/xfs_reflink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ xfs_reflink_convert_cow(
362362
xfs_fileoff_t end_fsb = XFS_B_TO_FSB(mp, offset + count);
363363
xfs_extnum_t idx;
364364
bool found;
365-
int error;
365+
int error = 0;
366366

367367
xfs_ilock(ip, XFS_ILOCK_EXCL);
368368

0 commit comments

Comments
 (0)