Skip to content
Commit 74cb485f authored by Roderick Colenbrander's avatar Roderick Colenbrander Committed by Jiri Kosina
Browse files

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: default avatarRoderick Colenbrander <roderick.colenbrander@sony.com>
Tested-by: default avatarAlain Carlucci <alain.carlucci@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent febb2c0d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment