summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2014-02-10 05:59:20 +0400
committerMarcel Holtmann <marcel@holtmann.org>2014-02-15 01:39:32 +0400
commitfb856e50900a84dd9f8d50d3882eb4a26ba6ea54 (patch)
treeb04ea2e97ced0ca36862e776b779679e5546c9b3 /include
parentf355095756c2a0b77a5b0aa0384c0c09d9735252 (diff)
downloadlinux-fb856e50900a84dd9f8d50d3882eb4a26ba6ea54.tar.xz
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 'include')
0 files changed, 0 insertions, 0 deletions