]> git.baikalelectronics.ru Git - kernel.git/commit
HID: playstation: sanity check DualSense calibration data.
authorRoderick Colenbrander <roderick@gaikai.com>
Fri, 6 Jan 2023 01:59:08 +0000 (17:59 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2023 07:06:33 +0000 (08:06 +0100)
commite1148f8185988be3dcf90806d774f60324fd963c
tree6c71303c818b88098e68235cdf7fc03efbae06fd
parent2620ba0e451766fbc472f88470b8f6b0288275d5
HID: playstation: sanity check DualSense calibration data.

[ Upstream commit 9c232ed6ce2817265ca06224181379059487cc7d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-playstation.c