Re: [PATCHv2] evdev: fix evdev_write return value on partial writes

From
Henrik Rydberg <hidden>
Date
2011-02-04 11:23:54
Reply to
Peter Korsgaard, 2011-02-04
 Henrik> The code below will return -EINVAL even if some parts of the buffer
 Henrik> was successfully read, though.

You mean written? I don't see that. The only place we return -EINVAL is
at the initial check.
Right, it should have been written, and -EFAULT, referring to the code
in the loop.

Henrik
Thread (4 messages) 4 messages, 3 authors, last reply 2011-02-04
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help