HID: playstation: sanity check DualSense calibration data.
authorRoderick Colenbrander <roderick@gaikai.com>
Fri, 6 Jan 2023 01:59:08 +0000 (17:59 -0800)
committerJiri Kosina <jkosina@suse.cz>
Wed, 18 Jan 2023 09:10:58 +0000 (10:10 +0100)
commitccf1e1626d37745d0a697db67407beec9ae9d4b8
tree9aef3eed693510d1c5c5c2da533700dbe15ad0fa
parent74cb485f68eb3dff6802ee446a602607b03f4fc9
HID: playstation: sanity check DualSense calibration data.

Make sure calibration values are defined to prevent potential kernel
crashes. This fixes a hypothetical issue for virtual or clone devices
inspired by a similar fix for DS4.

Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-playstation.c