summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_conn.c
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2014-02-10 02:59:20 +0100
committerMarcel Holtmann <marcel@holtmann.org>2014-02-14 22:39:32 +0100
commitfb856e50900a84dd9f8d50d3882eb4a26ba6ea54 (patch)
treeb04ea2e97ced0ca36862e776b779679e5546c9b3 /net/bluetooth/hci_conn.c
parentBluetooth: Refactor rfcomm_dev_add() (diff)
downloadlinux-fb856e50900a84dd9f8d50d3882eb4a26ba6ea54.tar.xz
linux-fb856e50900a84dd9f8d50d3882eb4a26ba6ea54.zip
Bluetooth: Cleanup RFCOMM device registration error handling
If RFCOMM tty device registration fails, cleanup by releasing the tty_port reference to trigger rfcomm_dev destruction (rather than open-coding it). The dlc reference release is moved into rfcomm_dev_add(), which ensures cleanup in both error paths -- ie., if __rfcomm_dev_add() fails or if tty_port_register_device() fails. Fixes releasing the module reference if device registration fails. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Tested-By: Alexander Holler <holler@ahsoftware.de> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_conn.c')
0 files changed, 0 insertions, 0 deletions