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 f6ec5eaf6b89..e094c572b86e 100644
--- a/drivers/hid/uhid.c
+++ b/drivers/hid/uhid.c
@@ -154,7 +154,7 @@ static int __uhid_report_queue_and_wait(struct uhid_device *uhid,
154 154
155 spin_lock_irqsave(&uhid->qlock, flags); 155 spin_lock_irqsave(&uhid->qlock, flags);
156 *report_id = ++uhid->report_id; 156 *report_id = ++uhid->report_id;
157 uhid->report_type = ev->type; 157 uhid->report_type = ev->type + 1;
158 uhid->report_running = true; 158 uhid->report_running = true;
159 uhid_queue(uhid, ev); 159 uhid_queue(uhid, ev);
160 spin_unlock_irqrestore(&uhid->qlock, flags); 160 spin_unlock_irqrestore(&uhid->qlock, flags);