]> git.baikalelectronics.ru Git - kernel.git/commit
Input: serio_raw - return proper result when serio_raw_write fails
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 10 Jan 2012 08:45:12 +0000 (00:45 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 11 Jan 2012 07:13:57 +0000 (23:13 -0800)
commitdb28638201c0dba098b9f7b12489a4742a875a67
treec16c5cd1d10d2bc7bec65b4fc553f206e52a0bc4
parentad83625623b942afec6164587c02c00e0f262bfd
Input: serio_raw - return proper result when serio_raw_write fails

If serio_raw_write was always returning number of bytes successfully
sent to serio port and never signalled error condition to the caller.
Change it so that for completely failed transfers appropriate error
code returned to the caller (partially successful writes still return
number of bytes transferred).

Reported-by: Che-liang Chiou <clchiou@chromium.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/serio/serio_raw.c