summaryrefslogtreecommitdiff
path: root/scripts/diffconfig
diff options
context:
space:
mode:
authorPengpeng Hou <pengpeng@iscas.ac.cn>2026-04-07 04:56:52 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2026-04-07 08:10:13 +0300
commitbc561dc8ba5b9fe56ed1757bdad218c9a0f992f1 (patch)
tree77819a0678b8bcaedd5f76ca1ef187a6a3a1c205 /scripts/diffconfig
parent84e7a17d1813394b48b0641fce8217fc0bba1960 (diff)
downloadlinux-bc561dc8ba5b9fe56ed1757bdad218c9a0f992f1.tar.xz
Input: gf2k - skip invalid hat lookup values
gf2k_read() decodes the hat position from a 4-bit field and uses it directly to index gf2k_hat_to_axis[]. The lookup table only has nine entries, so malformed packets can read past the end of the fixed table. Skip hat reporting when the decoded value falls outside the lookup table instead of forcing it to the neutral position. This keeps the fix local and avoids reporting a made-up axis state for malformed packets. Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn> Link: https://patch.msgid.link/20260407120001.1-gf2k-v2-pengpeng@iscas.ac.cn Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'scripts/diffconfig')
0 files changed, 0 insertions, 0 deletions