Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH 1/8] android/gatt: Fix return status if cannot alloc memory
@ 2014-10-17 13:38 Grzegorz Kolodziejczyk
  2014-10-17 13:38 ` [PATCH 2/8] android/tester: Define write types for GATT test cases Grzegorz Kolodziejczyk
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Grzegorz Kolodziejczyk @ 2014-10-17 13:38 UTC (permalink / raw)
  To: linux-bluetooth

NOMEM HAL status should be returned in case if it's not possible to
alloc memory for notifiaction data.
---
 android/gatt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/android/gatt.c b/android/gatt.c
index ea20941..c26d45a 100644
--- a/android/gatt.c
+++ b/android/gatt.c
@@ -3759,7 +3759,7 @@ static void handle_client_register_for_notification(const void *buf,
 
 	notification = new0(struct notification_data, 1);
 	if (!notification) {
-		status = HAL_STATUS_FAILED;
+		status = HAL_STATUS_NOMEM;
 		goto failed;
 	}
 
-- 
1.9.3


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

end of thread, other threads:[~2014-10-24 12:18 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-17 13:38 [PATCH 1/8] android/gatt: Fix return status if cannot alloc memory Grzegorz Kolodziejczyk
2014-10-17 13:38 ` [PATCH 2/8] android/tester: Define write types for GATT test cases Grzegorz Kolodziejczyk
2014-10-17 13:38 ` [PATCH 3/8] android/tester: Fix hardcoded length values Grzegorz Kolodziejczyk
2014-10-17 13:38 ` [PATCH 4/8] android/tester: Use BT_STATUS defines instead of hardcoded values Grzegorz Kolodziejczyk
2014-10-17 13:38 ` [PATCH 5/8] android/tester: Add att pdu remote receive debug log Grzegorz Kolodziejczyk
2014-10-17 13:38 ` [PATCH 6/8] android/tester: Add GATT server send indication test cases Grzegorz Kolodziejczyk
2014-10-17 13:38 ` [PATCH 7/8] android/tester: Add GATT server send response to read req " Grzegorz Kolodziejczyk
2014-10-17 13:38 ` [PATCH 8/8] android/tester: Add GATT server send response to write " Grzegorz Kolodziejczyk
2014-10-24 12:18 ` [PATCH 1/8] android/gatt: Fix return status if cannot alloc memory Szymon Janc

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox