aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/hid/uhid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/uhid.c b/drivers/hid/uhid.c
index 119b7e6405be..714cd8cc9579 100644
--- a/drivers/hid/uhid.c
+++ b/drivers/hid/uhid.c
@@ -465,7 +465,7 @@ try_again:
465 goto try_again; 465 goto try_again;
466 } else { 466 } else {
467 len = min(count, sizeof(**uhid->outq)); 467 len = min(count, sizeof(**uhid->outq));
468 if (copy_to_user(buffer, &uhid->outq[uhid->tail], len)) { 468 if (copy_to_user(buffer, uhid->outq[uhid->tail], len)) {
469 ret = -EFAULT; 469 ret = -EFAULT;
470 } else { 470 } else {
471 kfree(uhid->outq[uhid->tail]); 471 kfree(uhid->outq[uhid->tail]);