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

Commit 0d14824c authored by Nathan Scott's avatar Nathan Scott
Browse files

[XFS] Ensure max diosize reported is aligned with minimum diosize.



SGI-PV: 910890
SGI-Modid: xfs-linux-melb:xfs-kern:24689a

Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent ee2a4f7c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -751,7 +751,7 @@ xfs_ioctl(
			mp->m_rtdev_targp : mp->m_ddev_targp;

		da.d_mem = da.d_miniosz = 1 << target->pbr_sshift;
		da.d_maxiosz = INT_MAX;
		da.d_maxiosz = INT_MAX & ~(da.d_miniosz - 1);

		if (copy_to_user(arg, &da, sizeof(da)))
			return -XFS_ERROR(EFAULT);