HID: playstation: fix DualShock4 bluetooth memory corruption bug.
authorRoderick Colenbrander <roderick@gaikai.com>
Wed, 16 Nov 2022 16:00:21 +0000 (08:00 -0800)
committerJiri Kosina <jkosina@suse.cz>
Wed, 16 Nov 2022 23:46:13 +0000 (00:46 +0100)
commit54980d30eff608545884416576416060b80d011e
tree92f47d2f9340900cadb7564fee2042a36b8a5854
parentc64ed0cd9324f9e5f44deb6834ad9fb5bfa436bc
HID: playstation: fix DualShock4 bluetooth memory corruption bug.

The size of the output buffer used for output reports was not updated
to the larger size needed for Bluetooth. This ultimately resulted
in memory corruption of surrounding structures e.g. due to memsets.

Fixes: 2d77474a2392 ("HID: playstation: add DualShock4 bluetooth support.")
Reported-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-playstation.c