|
@@ -465,7 +465,7 @@ try_again:
|
|
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]);
|