diff options
author | Suren Baghdasaryan <surenb@google.com> | 2018-03-01 16:35:31 -0800 |
---|---|---|
committer | Suren Baghdasaryan <surenb@google.com> | 2018-03-02 19:12:59 +0000 |
commit | 855ea747806b2e31b844d6fdacd97e0a836be207 (patch) | |
tree | 1ed0661ac896076f88bdd109e55e887d1e270270 /net/mac80211 | |
parent | 024f962d4b2458ee814a6b0bb1027e3504cf7b74 (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 'net/mac80211')
0 files changed, 0 insertions, 0 deletions