On Thu, 5 Jan 2023, Roderick Colenbrander wrote: > 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@xxxxxxxx> > Tested-by: Alain Carlucci <alain.carlucci@xxxxxxxxx> Applied to for-6.2/upstream-fixes. -- Jiri Kosina SUSE Labs