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

Commit 296dfd7f authored by Jie Liu's avatar Jie Liu Committed by Dave Chinner
Browse files

xfs: remove redundant user buffer count checks at xfs_bulkstat



From: Jie Liu <jeff.liu@oracle.com>

Remove the redundant user buffer and count checks as it has already
been validated at xfs_ioc_bulkstat().

Signed-off-by: default avatarJie Liu <jeff.liu@oracle.com>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
parent c7cb51dc
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -230,9 +230,7 @@ xfs_bulkstat(
		*ubcountp = 0;
		return 0;
	}
	if (!ubcountp || *ubcountp <= 0) {
		return -EINVAL;
	}

	ubcount = *ubcountp; /* statstruct's */
	ubleft = ubcount * statstruct_size; /* bytes */
	*ubcountp = ubelem = 0;