usb: misc: usbsevseg: update to use usb_control_msg_send()
authorAnant Thazhemadam <anant.thazhemadam@gmail.com>
Fri, 26 Mar 2021 22:32:51 +0000 (04:02 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Mar 2021 11:41:27 +0000 (13:41 +0200)
commit38833cbda2c2bd2a0968e038248dda31af51d841
treee551f484ad1122e8e603ae74301ccbafea3ffad8
parentced6a0ba266effb0b31c7207f4348df9e906c789
usb: misc: usbsevseg: 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, instances of usb_control_msg() have been replaced with
usb_control_msg_send() appropriately.

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