2009-04-29 12:16:39

by alok barsode

[permalink] [raw]
Subject: [PATCH 2/2] Exit bluetoothd if adapter_ops registration fails.

From: Alok Barsode <[email protected]>

---
src/adapter.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/adapter.c b/src/adapter.c
index da524b8..08a0e08 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -3112,8 +3112,8 @@ void adapter_startup()
int err;

if (!adapter_ops) {
- info("No adapter_ops registered.");
- return;
+ info("adapter_ops registration failed. hciops plugin is not loaded.");
+ exit(1);
}

err = adapter_ops->setup();
--
1.5.6.3