Bluetooth: hci_sock: Replace use of memcpy_from_msg with bt_skb_sendmsg
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 30 Sep 2021 20:33:52 +0000 (13:33 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 1 Oct 2021 09:38:16 +0000 (11:38 +0200)
commit64ba2eb35fa076d5914e3a3e374898ca31c29e84
treef54c8894b27b38c4135b127a5a93eaec3bc4b4ef
parent4d51fb04c3c4a9b3b80f537385bdceb20e773767
Bluetooth: hci_sock: Replace use of memcpy_from_msg with bt_skb_sendmsg

This makes use of bt_skb_sendmsg instead of allocating a different
buffer to be used with memcpy_from_msg which cause one extra copy.

Tested-by: Tedd Ho-Jeong An <tedd.an@intel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hci_sock.c