OSDN Git Service

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)
commit81be03e026dc0c16dc1c64e088b2a53b73caa895
tree9d3cfb7c43a27b403f3ba40a899186f6069f4239
parent0771cbb3b97d3c1d68eecd7f00055f599954c34e
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