On Wed, 17 Apr 2013, Benjamin Tissoires wrote:
> If an event occurs while the hid debugfs is forwarding events, list->tail
> is updated during copy_to_user().
>
> Remove the gotos and use a regular while-loop to empty the queue.
>
> Second benefit, it checks that we are not writing more than cou
If an event occurs while the hid debugfs is forwarding events, list->tail
is updated during copy_to_user().
Remove the gotos and use a regular while-loop to empty the queue.
Second benefit, it checks that we are not writing more than count bytes
to the user-space output buffer.
Signed-off-by: Be
2 matches
Mail list logo