mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
aiptek_irq() derives macro key indices directly from tablet reports and then uses them to index macroKeyEvents[]. Report types 4 and 5 also save the derived value in aiptek->lastMacro and later use that state to release the previous key. Validate the raw macro index once before it enters that state machine, so lastMacro only ever stores an in-range macro key. Keep direct bounds checks for report type 6, which reads the macro number from the packet body and uses it immediately. Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn> Link: https://patch.msgid.link/20260329001711.88076-1-pengpeng@iscas.ac.cn [dtor: fix macro fallback in report 5s to use -1] Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> |
||
|---|---|---|
| .. | ||
| acecad.c | ||
| aiptek.c | ||
| hanwang.c | ||
| kbtab.c | ||
| Kconfig | ||
| Makefile | ||
| pegasus_notetaker.c | ||
| wacom_serial4.c | ||