diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2026-06-10 16:02:42 -0700 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2026-06-11 13:52:18 -0700 |
| commit | ff25a3b1cd607b268b7b3e47f068460ea1eeb956 (patch) | |
| tree | 39719d7c0be426e734bd5b0093fe864f28e28509 /include/linux/timerqueue.h | |
| parent | ed0428e92812b5d4e9d5c4cbcab9a4f107137dfc (diff) | |
Input: ipaq-micro-keys - add length check in micro_key_receive
The driver accesses the message payload (msg[0]) without checking if
the length is greater than zero. The parent MFD driver can produce a
payload with a length of 0, in which case msg[0] would be uninitialized
or stale.
Add a check to return early if len is less than 1.
Reported-by: sashiko-bot@kernel.org
Assisted-by: Antigravity:gemini-3.5-flash
Link: https://patch.msgid.link/aintAvTyw4CVb5hG@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
