xfs: fix uninitialized variable in _reflink_convert_cow
PATCH 1/1 xfs: fix uninitialized variable in _reflink_convert_cow
Fix an uninitialized variable.
Reported-by Dan Carpenter <[email protected]>
Signed-off-by Darrick J. Wong <[email protected]>
--- fs/xfs/xfs_reflink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/xfs/xfs_reflink.c +1 -1
@@ -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 );
Quoted 5 lines · Darrick J. Wong
Fix an uninitialized variable.
Reported-by Dan Carpenter <[email protected]>Signed-off-by Darrick J. Wong <[email protected]>---
Reviewed-by Brian Foster <[email protected]>
Quoted 20 lines
fs/xfs/xfs_reflink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/xfs/xfs_reflink.c +1
-2@@ -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 ); --To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Looks fine,
Reviewed-by Christoph Hellwig <[email protected]>