diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-09-14 17:37:52 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-09-16 11:02:50 +0200 |
commit | aea67cc1418252d07b9b56688f1b5fa70fcae813 (patch) | |
tree | 9c051d8cefb775eea08fd243987800cf3d7b7703 /sound/usb/caiaq/midi.c | |
parent | ec8eeceb06b7a6efb6d924fd2f4ba4ec79ddc7bf (diff) |
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.
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>
Diffstat (limited to 'sound/usb/caiaq/midi.c')
0 files changed, 0 insertions, 0 deletions