summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRuoyu Wang <ruoyuw560@gmail.com>2026-06-17 15:20:35 +0800
committerJiri Kosina <jkosina@suse.com>2026-06-29 10:54:04 +0200
commit8310cdeefc8a14d2093c3234b570c7805c20bcbf (patch)
tree88ee2247bf9c1db48562c01ada08b28b04d753d5 /tools/perf/scripts/python
parentb7556c8e713c88596046a906c7c4385218d44736 (diff)
HID: wacom: avoid copying Bluetooth input reports
wacom_intuos_bt_irq() duplicates the received Bluetooth report with kmemdup() so that it can pass 10-byte input report payloads to the common Intuos parser. The helper then copies each payload back into wacom->data before calling wacom_intuos_irq(). Avoid the allocation and copy by temporarily pointing wacom->data at the current 10-byte payload while the common parser runs, then restoring the original report pointer. The Bluetooth report parser keeps using the original report buffer for dispatch and battery parsing, while the common parser sees the same payload bytes as before. This also removes the unchecked kmemdup() result from the Bluetooth IRQ path. Suggested-by: Jason Gerecke <jason.gerecke@wacom.com> Signed-off-by: Ruoyu Wang <ruoyuw560@gmail.com> Reviewed-by: Jason Gerecke <jason.gerecke@wacom.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions