diff options
| author | Greg Kroah-Hartman <[email protected]> | 2020-09-23 13:43:46 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-09-25 14:33:59 +0000 |
| commit | 6d2d427e3b1266c3eab80cdb961c21b9f4fcdadf (patch) | |
| tree | ad734370c7d7d03346256d4d3457ea169056ea3d /drivers/usb/class/cdc-acm.c | |
| parent | USB: legousbtower: use usb_control_msg_recv() (diff) | |
| download | kernel-6d2d427e3b1266c3eab80cdb961c21b9f4fcdadf.tar.gz kernel-6d2d427e3b1266c3eab80cdb961c21b9f4fcdadf.zip | |
sound: line6: 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, and they can handle data off
of the stack, so move the driver over to using those calls instead,
saving some logic when dynamically allocating memory.
v2: API change of use usb_control_msg_send() and usb_control_msg_recv()
Cc: Jaroslav Kysela <[email protected]>
Cc: Vasily Khoruzhick <[email protected]>
Reviewed-by: Takashi Iwai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/class/cdc-acm.c')
0 files changed, 0 insertions, 0 deletions
