diff options
author | 2013-09-16 15:17:31 -0700 | |
---|---|---|
committer | 2013-09-18 12:22:06 -0700 | |
commit | 2f0d2604134880f739642fd7c3ae55db33c838e7 (patch) | |
tree | 8bde47595130fca3526efb343e2f3a2ed9b6901c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Input: pxa27x_keypad - fix NULL pointer dereference (diff) | |
download | linux-dev-2f0d2604134880f739642fd7c3ae55db33c838e7.tar.xz linux-dev-2f0d2604134880f739642fd7c3ae55db33c838e7.zip |
Input: i8042 - i8042_flush fix for a full 8042 buffer
When 8042 internal data buffer is full, the driver
erroneously decides that the controller is not present.
i8042_flush returns the number of flushed bytes, which is
in 0 - I8042_BUFFER_SIZE range inclusive. Therefore, i8042_flush
has no way to indicate an error. Moreover i8042_controller_check
takes initially full buffer (i8042_flush returned
I8042_BUFFER_SIZE) as a sign of absence of the controller.
Let's change i8042 to return success/error instead and make sure
we do not return error prematurely.
Signed-off-by: Andrey Moiseev <o2g.org.ru@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions