]> git.ipfire.org Git - thirdparty/linux.git/commit
Input: rmi4 - use flexible array member for IRQ masks in F12
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 5 May 2026 04:59:45 +0000 (21:59 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 12 Jun 2026 05:39:29 +0000 (22:39 -0700)
commitbcaea0fe87d521c044a3efc4ba3b78914072ed03
tree34cf47f6090bfaed867ae8d30ca928eb43f4af4a
parentf764f0f98c35766d2337cfce118731735339358b
Input: rmi4 - use flexible array member for IRQ masks in F12

Use a flexible array member to allocate the IRQ masks at the end of
the f12_data structure, and use the struct_size() helper to
calculate the allocation size safely. This replaces manual pointer
arithmetic.

Assisted-by: Gemini:gemini-3.1-pro
Link: https://patch.msgid.link/20260505045952.1570713-15-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_f12.c