aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPeter Hurley <[email protected]>2014-02-09 20:59:20 -0500
committerMarcel Holtmann <[email protected]>2014-02-14 13:39:32 -0800
commitfb856e50900a84dd9f8d50d3882eb4a26ba6ea54 (patch)
treeb04ea2e97ced0ca36862e776b779679e5546c9b3 /tools/perf/scripts/python
parentf355095756c2a0b77a5b0aa0384c0c09d9735252 (diff)
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 <[email protected]> Tested-By: Alexander Holler <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions