]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jul 2022 15:25:30 +0000 (17:25 +0200)
commitbe783a304d6f04f2665dafb134fd9f819fbb1ca1
treef2a6c9a1c20dbaebf9d932f00e8e0fb672369363
parent29244f2c59d43db84a4e8c1c60984cac251baada
Bluetooth: RFCOMM: Replace use of memcpy_from_msg with bt_skb_sendmmsg

commit 11fa3ef31d3c7151200433fc9caefc1d0d79b113 upstream.

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>
Cc: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bluetooth/rfcomm/core.c
net/bluetooth/rfcomm/sock.c