Roderick Colenbrander 0ee29814c6 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 <roderick.colenbrander@sony.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://lore.kernel.org/r/20221213044935.1775499-2-roderick.colenbrander@sony.com
2022-12-19 13:18:02 +01:00
..
2022-12-13 13:32:56 -08:00
2020-11-25 17:40:23 +01:00
2022-12-13 13:32:56 -08:00
2022-07-21 13:47:12 +02:00
2022-02-02 15:12:22 +01:00
2022-02-25 09:36:06 +01:00
2022-08-25 11:32:31 +02:00
2022-08-25 11:32:31 +02:00