diff options
author | Roderick Colenbrander <[email protected]> | 2022-12-12 20:49:35 -0800 |
---|---|---|
committer | Benjamin Tissoires <[email protected]> | 2022-12-19 13:18:02 +0100 |
commit | 0ee29814c6be17a924761d3712eb8ad63cfe13ac (patch) | |
tree | 86b4c1f175bf51fda6837b56ec16f0b9a46266cf /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 67c90d14018775556d5420382ace86521421f9ff (diff) |
HID: playstation: fix free of uninialized pointer for DS4 in Bluetooth.
The 'buf' variable is only used in the USB (if-path) and not in the Bluetooth
else-path. Since it is not set to NULL. this results in freeing an uninitialized
pointer. Since the else code-path doesn't need buf, just return 0.
Fixes: 2d77474a2392 ("HID: playstation: add DualShock4 bluetooth support.")
Signed-off-by: Roderick Colenbrander <[email protected]>
Signed-off-by: Benjamin Tissoires <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions