diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2023-07-12 17:02:34 +0200 |
---|---|---|
committer | Benjamin Tissoires <bentiss@kernel.org> | 2023-08-25 10:40:32 +0200 |
commit | 60165ab774cb0c509680a73cf826d0e158454653 (patch) | |
tree | 80e1248b3cff463f8b7542299054fa4a7f932713 /kernel/audit.h | |
parent | 6f20d3261265885f6a6be4cda49d7019728760e0 (diff) | |
download | linux-60165ab774cb0c509680a73cf826d0e158454653.tar.gz linux-60165ab774cb0c509680a73cf826d0e158454653.tar.bz2 linux-60165ab774cb0c509680a73cf826d0e158454653.zip |
HID: logitech-hidpp: rework one more time the retries attempts
Extract the internal code inside a helper function, fix the
initialization of the parameters used in the helper function
(`hidpp->answer_available` was not reset and `*response` wasn't either),
and use a `do {...} while();` loop.
Fixes: 586e8fede795 ("HID: logitech-hidpp: Retry commands when device is busy")
Cc: stable@vger.kernel.org
Reviewed-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://lore.kernel.org/r/20230621-logitech-fixes-v2-1-3635f7f9c8af@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'kernel/audit.h')
0 files changed, 0 insertions, 0 deletions