From a74f2bced064068523b497f5dff18dddb5d87c42 Mon Sep 17 00:00:00 2001 From: Grzegorz Kolodziejczyk Date: Fri, 17 Oct 2014 15:38:12 +0200 Subject: [PATCH] android/gatt: Fix return status if failed to allocate memory 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 ea20941e4..c26d45a71 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; } -- 2.47.3