diff options
author | Lee Jones <[email protected]> | 2022-07-08 08:40:09 +0100 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2022-08-25 10:22:15 +0200 |
commit | cd11d1a6114bd4bc6450ae59f6e110ec47362126 (patch) | |
tree | 2e8cd6a339dea5ae44c8930b78731e801d5203bd /lib/zstd/common/debug.c | |
parent | 8d9420ca9bd9bceddcfab3d0263d6a8e073396fe (diff) |
HID: steam: Prevent NULL pointer dereference in steam_{recv,send}_report
It is possible for a malicious device to forgo submitting a Feature
Report. The HID Steam driver presently makes no prevision for this
and de-references the 'struct hid_report' pointer obtained from the
HID devices without first checking its validity. Let's change that.
Cc: Jiri Kosina <[email protected]>
Cc: Benjamin Tissoires <[email protected]>
Cc: [email protected]
Fixes: c164d6abf3841 ("HID: add driver for Valve Steam Controller")
Signed-off-by: Lee Jones <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'lib/zstd/common/debug.c')
0 files changed, 0 insertions, 0 deletions