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