xfs: ubsan fixes
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 27 Nov 2017 17:50:17 +0000 (09:50 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Feb 2018 16:39:14 +0000 (17:39 +0100)
commit4e506f41705cf9b2ea64e9d698bc272dd9c25b2d
treefdd9a10b800707675f6b8b963fb305cf1dbb5073
parent4a96f3d05668cdee90779b07227054d4ec41b32d
xfs: ubsan fixes

[ Upstream commit 22a6c83777ac7c17d6c63891beeeac24cf5da450 ]

Fix some complaints from the UBSAN about signed integer addition overflows.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_aops.c