]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Input: evdev - limit amount of data for writes
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 15 Aug 2024 18:41:53 +0000 (11:41 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 24 Aug 2024 06:51:14 +0000 (23:51 -0700)
commit6994d8b84bfd71431bfccb5baf84a827086d48a5
tree9b6c1763d2a1d15abbfb60836dd3e15117ec354a
parent6c65914a40d33e96ceedc757be0129139cdf7852
Input: evdev - limit amount of data for writes

Limit amount of data that can be written into an evdev instance at
a given time to 4096 bytes (170 input events) to avoid holding
evdev->mutex for too long and starving other users.

Reviewed-by: Jeff LaBundy <jeff@labundy.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Link: https://lore.kernel.org/r/Zr5L8TUzkJcB9HcF@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/evdev.c