]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: SCO: Replace use of memcpy_from_msg with bt_skb_sendmsg
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 3 Sep 2021 22:27:31 +0000 (15:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jul 2022 15:14:18 +0000 (17:14 +0200)
commitd2329dea182463f9e4fc5adc0005ab572b17c9c9
tree06c8ca46a9ac44bc7a3fedd3eb197ac7a9410f45
parent7243fd46d4ca89e78ecb47825928ecdaa7cd0f09
Bluetooth: SCO: Replace use of memcpy_from_msg with bt_skb_sendmsg

commit 2cde62b2552e879c59ea86bbcdaeeccc4a9d69fb upstream.

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.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Cc: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bluetooth/sco.c