diff options
author | 2023-06-13 03:16:35 -0700 | |
---|---|---|
committer | 2023-08-22 17:35:05 +0200 | |
commit | 6f20d3261265885f6a6be4cda49d7019728760e0 (patch) | |
tree | 9ba32113f1aa71d487d33908c429aee86deac759 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | HID: logitech-hidpp: Add support for Logitech MX Anywhere 3 mouse (diff) | |
download | wireguard-linux-6f20d3261265885f6a6be4cda49d7019728760e0.tar.xz wireguard-linux-6f20d3261265885f6a6be4cda49d7019728760e0.zip |
HID: logitech-dj: Fix error handling in logi_dj_recv_switch_to_dj_mode()
Presently, if a call to logi_dj_recv_send_report() fails, we do
not learn about the error until after sending short
HID_OUTPUT_REPORT with hid_hw_raw_request().
To handle this somewhat unlikely issue, return on error in
logi_dj_recv_send_report() (minding ugly sleep workaround) and
take into account the result of hid_hw_raw_request().
Found by Linux Verification Center (linuxtesting.org) with static
analysis tool SVACE.
Fixes: 6a9ddc897883 ("HID: logitech-dj: enable notifications on connect/disconnect")
Signed-off-by: Nikita Zhandarovich <n.zhandarovich@fintech.ru>
Link: https://lore.kernel.org/r/20230613101635.77820-1-n.zhandarovich@fintech.ru
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions