diff options
author | Roderick Colenbrander <[email protected]> | 2023-01-05 17:59:07 -0800 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2023-01-18 10:10:27 +0100 |
commit | 74cb485f68eb3dff6802ee446a602607b03f4fc9 (patch) | |
tree | c06d2f46e8f98bbeb2697e9fbf503877ab28f9df /tools/perf/scripts/python | |
parent | febb2c0d7c69c0396aa32d5ab425a4163473961a (diff) |
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 <[email protected]>
Tested-by: Alain Carlucci <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions