]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: ath3k: use usb_control_msg_send() and usb_control_msg_recv()
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Sep 2020 15:37:55 +0000 (17:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Sep 2020 09:02:58 +0000 (11:02 +0200)
commit56e38678427380fb3e2cb9e93acd482bedefcc20
tree63c9306ff04a2b38a8838f63a4fdcebe3c525abb
parenteb6a2a28a6c7ccaaf4f8f8f590982c58716ae657
Bluetooth: ath3k: 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.

Cc: Marcel Holtmann <marcel@holtmann.org>
Cc: Johan Hedberg <johan.hedberg@gmail.com>
Link: https://lore.kernel.org/r/20200914153756.3412156-11-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bluetooth/ath3k.c