diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-09-23 15:43:44 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-09-25 16:33:59 +0200 |
commit | 9ad71af922a8b4a619665498e0094dc5206e9f50 (patch) | |
tree | ac7bba4ce62be43d752fa3b5dfaa728a6cb40cd8 /drivers/usb/misc | |
parent | sound: usx2y: move to use usb_control_msg_send() (diff) | |
download | linux-9ad71af922a8b4a619665498e0094dc5206e9f50.tar.xz linux-9ad71af922a8b4a619665498e0094dc5206e9f50.zip |
sound: 6fire: move to use usb_control_msg_send() and usb_control_msg_recv()
The usb_control_msg_send() and usb_control_msg_recv() calls can return
an error if a "short" write/read happens, so move the driver over to
using those calls instead, saving some logic in the wrapper functions
that were being used in this driver.
This also resolves a long-staging bug where data on the stack was being
sent in a USB control message, which was not allowed.
v2: API change of usb_control_msg_send()
Cc: Jaroslav Kysela <perex@perex.cz>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20200914153756.3412156-8-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20200923134348.23862-11-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/misc')
0 files changed, 0 insertions, 0 deletions