
static int io_buffer_validate(struct iovec *iov)
{
	/*
	 * Don't impose further limits on the size and buffer
	 * constraints here, we'll -EINVAL later when IO is
	 * submitted if they are wrong.
	 */
	if (!iov->iov_base || !iov->iov_len)
		return -EFAULT;

	/* arbitrary limit, but we need something */
	if (iov->iov_len > SZ_1G)
		return -EFAULT;

	return 0;

static int io_buffer_validate(struct iovec *iov)
{
	 
	if (!iov->iov_base || !iov->iov_len)
		return -EFAULT;

	 
	if (iov->iov_len > SZ_1G)
		return -EFAULT;

	return 0;