summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRoderick Colenbrander <roderick@gaikai.com>2023-01-05 17:59:07 -0800
committerJiri Kosina <jkosina@suse.cz>2023-01-18 10:10:27 +0100
commit74cb485f68eb3dff6802ee446a602607b03f4fc9 (patch)
treec06d2f46e8f98bbeb2697e9fbf503877ab28f9df /tools/perf/scripts/python
parentfebb2c0d7c69c0396aa32d5ab425a4163473961a (diff)
downloadlinux-74cb485f68eb3dff6802ee446a602607b03f4fc9.tar.gz
linux-74cb485f68eb3dff6802ee446a602607b03f4fc9.tar.bz2
linux-74cb485f68eb3dff6802ee446a602607b03f4fc9.zip
HID: playstation: sanity check DualShock4 calibration data.
Some DualShock4 devices report invalid calibration data resulting in kernel oopses due to division by zero during report handling. The devices affected generally appear to be clone devices, which don't implement all reports properly and don't populate proper calibration data. The issue may have been seen on an official device with erased calibration reports. This patch prevents the crashes by essentially disabling calibration when invalid values are detected. Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com> Tested-by: Alain Carlucci <alain.carlucci@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions