[PATCH 2/2] Exit bluetoothd if adapter_ops registration fails.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Alok Barsode <alok.barsode@xxxxxxxxxx>

---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux