xfs: null out bma->prev if no previous extent
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 6 Nov 2019 16:53:54 +0000 (08:53 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 7 Nov 2019 21:00:54 +0000 (13:00 -0800)
commitf5be08446ee748785697527c8d772d896814b95f
treeba505a17fc7f0b8175706d01a72bb5580a00a31e
parent5f213ddbcbe86577f517437ef0ecb4ef3bcc3434
xfs: null out bma->prev if no previous extent

Coverity complains that we don't check the return value of
xfs_iext_peek_prev_extent like we do nearly all of the time.  If there
is no previous extent then just null out bma->prev like we do elsewhere
in the bmap code.

Coverity-id: 1424057
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_bmap.c