if (count < 0 || count >= PAGE_SIZE)
if (count >= PAGE_SIZE)
static ssize_t sel_write_checkreqprot(struct file * file, const char __user * buf,				      size_t count, loff_t *ppos){	char *page;	ssize_t length;	unsigned int new_value;	length = task_has_security(current, SECURITY__SETCHECKREQPROT);	if (length)		return length;	if (count < 0 || count >= PAGE_SIZE)		return -ENOMEM;	if (*ppos != 0) {		/* No partial writes. */		return -EINVAL;	}	page = (char*)get_zeroed_page(GFP_KERNEL);	if (!page)		return -ENOMEM;	length = -EFAULT;	if (copy_from_user(page, buf, count))		goto out;	length = -EINVAL;	if (sscanf(page, "%u", &new_value) != 1)		goto out;	selinux_checkreqprot = new_value ? 1 : 0;	length = count;out:	free_page((unsigned long) page);	return length;}