linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] android/gatt: Fix incorrect attribute check
@ 2014-11-10  9:10 Andrei Emeltchenko
  2014-11-10 19:52 ` Szymon Janc
  0 siblings, 1 reply; 2+ messages in thread
From: Andrei Emeltchenko @ 2014-11-10  9:10 UTC (permalink / raw)
  To: linux-bluetooth

From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] android/gatt: Fix incorrect attribute check
  2014-11-10  9:10 [PATCH] android/gatt: Fix incorrect attribute check Andrei Emeltchenko
@ 2014-11-10 19:52 ` Szymon Janc
  0 siblings, 0 replies; 2+ messages in thread
From: Szymon Janc @ 2014-11-10 19:52 UTC (permalink / raw)
  To: Andrei Emeltchenko; +Cc: linux-bluetooth

Hi Andrei,

On Monday 10 of November 2014 11:10:00 Andrei Emeltchenko wrote:
> From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
> 
> ---
>  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;
>  	}

Pushed. Thanks.

-- 
BR
Szymon Janc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-11-10 19:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-10  9:10 [PATCH] android/gatt: Fix incorrect attribute check Andrei Emeltchenko
2014-11-10 19:52 ` Szymon Janc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).