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

Commit 73024cf1 authored by Eric Sesterhenn's avatar Eric Sesterhenn Committed by Nathan Scott
Browse files

[XFS] Fix realtime subvolume expansion, a porting bug b0rked it. Coverity


made me look at this code (bug id #344). We only return with
XFS_ERROR(EINVAL) if mp->m_rtdev_targp is valid and pass it otherwise to
xfs_read_buf() where some function calls later it gets dereferenced by an
assert.

SGI-PV: 954266
SGI-Modid: xfs-linux-melb:xfs-kern:26363a

Signed-off-by: default avatarEric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent 97dfd70c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1929,7 +1929,7 @@ xfs_growfs_rt(
	/*
	 * Initial error checking.
	 */
	if (mp->m_rtdev_targp || mp->m_rbmip == NULL ||
	if (mp->m_rtdev_targp == NULL || mp->m_rbmip == NULL ||
	    (nrblocks = in->newblocks) <= sbp->sb_rblocks ||
	    (sbp->sb_rblocks && (in->extsize != sbp->sb_rextsize)))
		return XFS_ERROR(EINVAL);