usb: misc: ezusb: update to use usb_control_msg_send()
authorAnant Thazhemadam <anant.thazhemadam@gmail.com>
Fri, 26 Mar 2021 22:32:50 +0000 (04:02 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Mar 2021 11:41:27 +0000 (13:41 +0200)
commitced6a0ba266effb0b31c7207f4348df9e906c789
tree01bfb5def85d1b97e5c8df5052dd032f3637bc5f
parentf5ffdd3b7554158ec5be6ab28a48751d1d87d0cc
usb: misc: ezusb: update to use usb_control_msg_send()

The newer usb_control_msg_{send|recv}() API ensures that a short read is
treated as an error, data can be used off the stack, and raw usb pipes need
not be created in the calling functions.
For this reason, the instance of usb_control_msg() has been replaced with
usb_control_msg_send() appropriately.

Reviewed-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Anant Thazhemadam <anant.thazhemadam@gmail.com>
Link: https://lore.kernel.org/r/20210326223251.753952-3-anant.thazhemadam@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/ezusb.c