|
@@ -465,7 +465,7 @@ static ssize_t uhid_char_read(struct file *file, char __user *buffer,
|
|
|
goto try_again;
|
|
goto try_again;
|
|
|
} else {
|
|
} else {
|
|
|
len = min(count, sizeof(**uhid->outq));
|
|
len = min(count, sizeof(**uhid->outq));
|
|
|
- if (copy_to_user(buffer, &uhid->outq[uhid->tail], len)) {
|
|
|
|
|
|
|
+ if (copy_to_user(buffer, uhid->outq[uhid->tail], len)) {
|
|
|
ret = -EFAULT;
|
|
ret = -EFAULT;
|
|
|
} else {
|
|
} else {
|
|
|
kfree(uhid->outq[uhid->tail]);
|
|
kfree(uhid->outq[uhid->tail]);
|