linux/include/net/bluetooth
Peter Hurley 1c64834e06 Bluetooth: Release rfcomm_dev only once
No logic prevents an rfcomm_dev from being released multiple
times. For example, if the rfcomm_dev ref count is large due
to pending tx, then multiple RFCOMMRELEASEDEV ioctls may
mistakenly release the rfcomm_dev too many times. Note that
concurrent ioctls are not required to create this condition.

Introduce RFCOMM_DEV_RELEASED status bit which guarantees the
rfcomm_dev can only be released once.

NB: Since the flags are exported to userspace, introduce the status
field to track state for which userspace should not be aware.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Tested-By: Alexander Holler <holler@ahsoftware.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2014-02-14 13:39:29 -08:00
..
bluetooth.h Bluetooth: Introduce requirements for security level 4 2014-02-13 09:51:35 +02:00
hci_core.h Bluetooth: Introduce connection parameters list 2014-02-13 09:51:44 +02:00
hci_mon.h Bluetooth: Fix coding style in all .h files 2012-03-07 00:04:25 -03:00
hci.h Bluetooth: Add constants for LTK key types 2014-02-13 09:51:44 +02:00
l2cap.h Bluetooth: Enable LE L2CAP CoC support by default 2014-02-14 13:39:12 -08:00
mgmt.h Bluetooth: Rename authentication to key_type in mgmt_ltk_info 2014-02-13 09:51:43 +02:00
rfcomm.h Bluetooth: Release rfcomm_dev only once 2014-02-14 13:39:29 -08:00
sco.h Bluetooth: Store SCO address information in its own socket structure 2013-10-13 21:11:20 +03:00