[PATCH v1 3/5] iommufd/selftest: Convert cache invalidation mocks to the core array loop

Tian, Kevin kevin.tian at intel.com
Thu Jul 2 23:22:31 PDT 2026


> From: Nicolin Chen <nicolinc at nvidia.com>
> Sent: Tuesday, June 30, 2026 5:16 AM
>
> +	/*
> +	 * The core re-invokes this op for the remaining requests, so handle
> one
> +	 * request per call. A zero-length array only probes the type,
> validated
> +	 * above.
> +	 */
> +	if (!array->entry_num)
> +		goto out;
> 

it's clearer to directly return 0 here.

Reviewed-by: Kevin Tian <kevin.tian at intel.com>



More information about the linux-arm-kernel mailing list