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

Commit 52101dfe authored by Darrick J. Wong's avatar Darrick J. Wong
Browse files

xfs: add missing rmap error return



xfs_rmap_lookup_le_range can return errors, so we need to check for
them and bail out.

Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
parent cec57256
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1374,6 +1374,8 @@ xfs_rmap_convert_shared(
	 */
	error = xfs_rmap_lookup_le_range(cur, bno, owner, offset, flags,
			&PREV, &i);
	if (error)
		goto done;
	XFS_WANT_CORRUPTED_GOTO(mp, i == 1, done);

	ASSERT(PREV.rm_offset <= offset);