Skip to contentSkip to conversation

Exit bluetoothd if adapter_ops registration fails.

PATCH New [email protected] 1 participant 1 message Apr 29, 2009 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

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(-)
src/adapter.c +2 -2
index da524b8..08a0e08 100644
@@ -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();
Signature · 1 line
1.5.6.3