/* Check a string doesn't overrun the chunk of memory we copied from user land.  */
static int invalid_str(char *str, size_t size)
/* Check a string doesn't overrun the chunk of memory we copied from user land.  */
static int invalid_str(char *str, size_t size)
{
	if (memchr(str, 0, size))
		return 0;
	return -EINVAL;
}