]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: RFCOMM: Replace use of memcpy_from_msg with bt_skb_sendmmsg
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 3 Sep 2021 22:27:32 +0000 (15:27 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 13 Sep 2021 19:53:23 +0000 (21:53 +0200)
commit11fa3ef31d3c7151200433fc9caefc1d0d79b113
tree9d3cfb7c43a27b403f3ba40a899186f6069f4239
parent99a849f60da6f6a89c8dae472c0bcc4b21ca9b91
Bluetooth: RFCOMM: Replace use of memcpy_from_msg with bt_skb_sendmmsg

This makes use of bt_skb_sendmmsg instead using memcpy_from_msg which
is not considered safe to be used when lock_sock is held.

Also make rfcomm_dlc_send handle skb with fragments and queue them all
atomically.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/rfcomm/core.c
net/bluetooth/rfcomm/sock.c