|
@@ -524,6 +524,7 @@ static ssize_t uio_read(struct file *filep, char __user *buf,
|
|
|
|
|
|
event_count = atomic_read(&idev->event);
|
|
event_count = atomic_read(&idev->event);
|
|
if (event_count != listener->event_count) {
|
|
if (event_count != listener->event_count) {
|
|
|
|
+ __set_current_state(TASK_RUNNING);
|
|
if (copy_to_user(buf, &event_count, count))
|
|
if (copy_to_user(buf, &event_count, count))
|
|
retval = -EFAULT;
|
|
retval = -EFAULT;
|
|
else {
|
|
else {
|