]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 16 Sep 2022 08:53:33 +0000 (10:53 +0200)
commitfdeb6d97d0bb9904481427dcf8f12df397d4ce4b
tree68cdde5d05756a2e37517663066a6dcfce0355f2
parent3346ed7c1f53a11efb4a21b2385121d2c3a3972b
Bluetooth: Add bt_skb_sendmsg helper

BugLink: https://bugs.launchpad.net/bugs/1988479
commit 38f64f650dc0e44c146ff88d15a7339efa325918 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
include/net/bluetooth/bluetooth.h