[PATCH] android/gatt: Fix incorrect attribute check

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

 



From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx>

---
 android/gatt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/android/gatt.c b/android/gatt.c
index 2fad5ee..086bb94 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -4311,7 +4311,7 @@ static void handle_server_add_included_service(const void *buf, uint16_t len)
 	}
 
 	include = gatt_db_get_attribute(gatt_db, cmd->included_handle);
-	if (!service) {
+	if (!include) {
 		status = HAL_STATUS_FAILED;
 		goto failed;
 	}
-- 
1.9.1

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