summaryrefslogtreecommitdiffstats
path: root/net/core/Makefile
diff options
context:
space:
mode:
authorGianluca Anzolin2013-07-29 17:08:12 +0200
committerGustavo Padovan2013-08-21 16:47:07 +0200
commitece3150dea382c7c961fe2604332ed3474960d25 (patch)
tree169cd2b7e414a06f7e35b522ab3a4fa4105ea8ca /net/core/Makefile
parentBluetooth: Implement .activate, .shutdown and .carrier_raised methods (diff)
downloadkernel-qcow2-linux-ece3150dea382c7c961fe2604332ed3474960d25.tar.gz
kernel-qcow2-linux-ece3150dea382c7c961fe2604332ed3474960d25.tar.xz
kernel-qcow2-linux-ece3150dea382c7c961fe2604332ed3474960d25.zip
Bluetooth: Fix the reference counting of tty_port
The tty_port can be released in two cases: when we get a HUP in the functions rfcomm_tty_hangup() and rfcomm_dev_state_change(). Or when the user releases the device in rfcomm_release_dev(). In these cases we set the flag RFCOMM_TTY_RELEASED so that no other function can get a reference to the tty_port. The use of !test_and_set_bit(RFCOMM_TTY_RELEASED) ensures that the 'initial' tty_port reference is only dropped once. The rfcomm_dev_del function is removed becase it isn't used anymore. Signed-off-by: Gianluca Anzolin <gianluca@sottospazio.it> Reviewed-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/core/Makefile')
0 files changed, 0 insertions, 0 deletions