diff options
author | Suren Baghdasaryan <surenb@google.com> | 2018-03-01 16:35:31 -0800 |
---|---|---|
committer | Amit Pundir <amit.pundir@linaro.org> | 2018-03-05 22:01:49 +0530 |
commit | 6aa8d8c0cd18d30d4a80367222eca75a0c2591ff (patch) | |
tree | 499aabe7d885e7b3e9fddedbb5f3d66bdba69fd8 /Documentation | |
parent | 1d9ed92f19f2c9d0af930743538628dbc6b4ba70 (diff) |
ANDROID: keychord: Check for write data size
keychord driver causes a kernel warning when writing more than
(1 << (MAX_ORDER - 1)) * PAGE_SIZE bytes to /dev/keychord.
In reality writes to this file should be much smaller, so
limiting data size to PAGE_SIZE seems to be appropriate.
This change checks write data size and if it's more than
PAGE_SIZE causes write to fail.
Bug: 73962978
Change-Id: I8a064a396d4259ffca924fa35d80e9700c4f8d79
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions