Bluetooth: Introduce helper functions for socket cookie handling
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 30 Aug 2016 03:00:34 +0000 (05:00 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 19 Sep 2016 18:19:34 +0000 (20:19 +0200)
commitdf1cb87af9f24527a8932e4d195d49ffab1168d2
tree1128642458f20dfa9324f8539b7c275bdcf210b7
parent3d4e2fb64111ffb5dc737daf25f5434bf39bee5f
Bluetooth: Introduce helper functions for socket cookie handling

Instead of manually allocating cookie information each time, use helper
functions for generating and releasing cookies.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/hci_sock.c