]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Add bt_skb_sendmsg helper
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 3 Sep 2021 22:27:29 +0000 (15:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jul 2022 15:14:18 +0000 (17:14 +0200)
commitc2bcf0f551be328d402a33defc40562365e0548d
tree386cffcecb416b07f969fafb5d6229a6c05fd5f0
parent796f5fb4496093f0d35b2c28ca5008c58a128d25
Bluetooth: Add bt_skb_sendmsg helper

commit 1b696bf223cdab8b76a67e8a3568d2f0acb51b77 upstream.

bt_skb_sendmsg helps takes care of allocation the skb and copying the
the contents of msg over to the skb while checking for possible errors
so it should be safe to call it without holding lock_sock.

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>
include/net/bluetooth/bluetooth.h