diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/hid/hidraw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hidraw.c b/drivers/hid/hidraw.c index 468e87b53ed2..66fbcbae5343 100644 --- a/drivers/hid/hidraw.c +++ b/drivers/hid/hidraw.c | |||
@@ -91,7 +91,7 @@ static ssize_t hidraw_read(struct file *file, char __user *buffer, size_t count, | |||
91 | ret = -EFAULT; | 91 | ret = -EFAULT; |
92 | goto out; | 92 | goto out; |
93 | } | 93 | } |
94 | ret += len; | 94 | ret = len; |
95 | 95 | ||
96 | kfree(list->buffer[list->tail].value); | 96 | kfree(list->buffer[list->tail].value); |
97 | list->tail = (list->tail + 1) & (HIDRAW_BUFFER_SIZE - 1); | 97 | list->tail = (list->tail + 1) & (HIDRAW_BUFFER_SIZE - 1); |