Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99226b89 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Greg Kroah-Hartman
Browse files

xfs: fix integer truncation in xfs_bmap_remap_alloc



commit 52813fb13ff90bd9c39a93446cbf1103c290b6e9 upstream.

bno should be a xfs_fsblock_t, which is 64-bit wides instead of a
xfs_aglock_t, which truncates the value to 32 bits.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4e276287
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3964,7 +3964,7 @@ xfs_bmap_remap_alloc(
{
	struct xfs_trans	*tp = ap->tp;
	struct xfs_mount	*mp = tp->t_mountp;
	xfs_agblock_t		bno;
	xfs_fsblock_t		bno;
	struct xfs_alloc_arg	args;
	int			error;