diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2014-02-10 05:59:20 +0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-02-15 01:39:32 +0400 |
commit | fb856e50900a84dd9f8d50d3882eb4a26ba6ea54 (patch) | |
tree | b04ea2e97ced0ca36862e776b779679e5546c9b3 /include/xen/events.h | |
parent | f355095756c2a0b77a5b0aa0384c0c09d9735252 (diff) | |
download | linux-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/xen/events.h')
0 files changed, 0 insertions, 0 deletions