]> 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)
commitb05a5224e2b1479ce12f0313d42a036e029c8699
tree9d3cfb7c43a27b403f3ba40a899186f6069f4239
parent2cde62b2552e879c59ea86bbcdaeeccc4a9d69fb
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