]> git.itanic.dy.fi Git - linux-stable/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)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 13 Sep 2021 19:53:22 +0000 (21:53 +0200)
commit38f64f650dc0e44c146ff88d15a7339efa325918
tree7602f29f189c574b68e0b1805ceafff6cfb4c1ab
parent2fc7acb69fa3573d4bf7a90c323296d840daf330
Bluetooth: Add bt_skb_sendmsg helper

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