From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Szymon Janc To: Grzegorz Kolodziejczyk Cc: linux-bluetooth@vger.kernel.org Subject: Re: [PATCH 1/8] android/gatt: Fix return status if cannot alloc memory Date: Fri, 24 Oct 2014 14:18:09 +0200 Message-ID: <1970231.pCIHQJfjbF@uw000953> In-Reply-To: <1413553099-19689-1-git-send-email-grzegorz.kolodziejczyk@tieto.com> References: <1413553099-19689-1-git-send-email-grzegorz.kolodziejczyk@tieto.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Grzegorz, On Friday 17 of October 2014 15:38:12 Grzegorz Kolodziejczyk wrote: > 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; > } > All patches have been applied. Thanks. -- Best regards, Szymon Janc