diff --git a/examples/vinput.c b/examples/vinput.c index 78ee0cc0..59f25841 100644 --- a/examples/vinput.c +++ b/examples/vinput.c @@ -106,7 +106,7 @@ static ssize_t vinput_read(struct file *file, char __user *buffer, size_t count, count = len - *offset; if (raw_copy_to_user(buffer, buff + *offset, count)) - count = -EFAULT; + return -EFAULT; *offset += count;