[PATCH 1/2] input: Return the number of bytes written so far on evdev write failure

2013-09-17 Thread Ryan Mallon
If input_event_from_user() fails in evdev write() and at least one event has been written successfully then return the number of bytes written. If no events have been written, then the EFAULT error is returned. Signed-off-by: Ryan Mallon --- drivers/input/evdev.c |3 ++- 1 file changed, 2

[PATCH 1/2] input: Return the number of bytes written so far on evdev write failure

2013-09-17 Thread Ryan Mallon
If input_event_from_user() fails in evdev write() and at least one event has been written successfully then return the number of bytes written. If no events have been written, then the EFAULT error is returned. Signed-off-by: Ryan Mallon rmal...@gmail.com --- drivers/input/evdev.c |3 ++- 1