From a59fa7ff822e7b0a726f55e12e99b1a1f984ee5f Mon Sep 17 00:00:00 2001 From: Matt Gumbel Date: Thu, 2 May 2013 17:37:26 -0700 Subject: 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 --- hci/src/bt_hci_bdroid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.1