summaryrefslogtreecommitdiffstats
path: root/hci
diff options
context:
space:
mode:
authorMatt Gumbel <matthew.k.gumbel@intel.com>2013-05-02 17:37:26 -0700
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-07-14 00:43:58 +0100
commita59fa7ff822e7b0a726f55e12e99b1a1f984ee5f (patch)
tree82fa8f65780486e4543c1e8dd797975381ca0ae1 /hci
parentea48d2e7809afa1dada69bc27693b9b9fe3b59a6 (diff)
downloadexternal_bluetooth_bluedroid-a59fa7ff822e7b0a726f55e12e99b1a1f984ee5f.zip
external_bluetooth_bluedroid-a59fa7ff822e7b0a726f55e12e99b1a1f984ee5f.tar.gz
external_bluetooth_bluedroid-a59fa7ff822e7b0a726f55e12e99b1a1f984ee5f.tar.bz2
bt_hci_bdroid: check for failure to open hci
Initialization should not continue if we failed to open the hci transport. Change-Id: Idf2008477f34ed216163ca47be637f415d640bf5 Signed-off-by: Matt Gumbel <matthew.k.gumbel@intel.com>
Diffstat (limited to 'hci')
-rw-r--r--hci/src/bt_hci_bdroid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hci/src/bt_hci_bdroid.c b/hci/src/bt_hci_bdroid.c
index 7b14eb3..46355de 100644
--- a/hci/src/bt_hci_bdroid.c
+++ b/hci/src/bt_hci_bdroid.c
@@ -376,7 +376,8 @@ static void *bt_hc_worker_thread(void *arg)
if (events & HC_EVENT_PRELOAD)
{
- userial_open(USERIAL_PORT_1);
+ if (userial_open(USERIAL_PORT_1) == FALSE)
+ break;
/* Calling vendor-specific part */
if (bt_vnd_if)