]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: reorganize functions from hci_sock_sendmsg()
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Thu, 22 Jul 2021 07:42:08 +0000 (16:42 +0900)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 30 Aug 2021 14:16:49 +0000 (16:16 +0200)
commitb979b75349cff3522cb16cd1ff027a8d8fec8eaf
tree8faa9e4b661802532cf3ec65438e6fb218888a14
parent40afec10ce137a60b18a689871e63d0d95605f46
Bluetooth: reorganize functions from hci_sock_sendmsg()

Since userfaultfd mechanism allows sleeping with kernel lock held,
avoiding page fault with kernel lock held where possible will make
the module more robust. This patch just brings memcpy_from_msg() calls
to out of sock lock.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_sock.c