[SRU][F/G][PATCH] Fix Sony Dualshock 4 crashes systems
Alex Hung
alex.hung at canonical.com
Thu Jul 15 19:30:32 UTC 2021
BugLink: https://bugs.launchpad.net/bugs/1935846
[Impact]
Sony Dualshock 4 controller crashes systems. This is the result of a
divide by zero when the driver processes requests from Steam and returns
invalid data. More details are in the patch description.
[Fix]
Check whether data is valid and retry up to 3 times if needed.
[Test Case]
Tested by the bug reporter of LP:1935846. No more crashes after applying
this patch.
[Where problems could occur]
None. The patch checks whether data is valid and retry 3 times before
return -EILSEQ if it still fails.
Roderick Colenbrander (1):
HID: sony: Workaround for DS4 dongle hotplug kernel crash.
drivers/hid/hid-sony.c | 34 ++++++++++++++++++++++++++++------
1 file changed, 28 insertions(+), 6 deletions(-)
--
2.7.4
More information about the kernel-team
mailing list