Return-Path: From: Andrei Emeltchenko To: linux-bluetooth@vger.kernel.org Subject: [RFC] gatt: Fix wrong function exit Date: Mon, 27 Oct 2014 16:01:25 +0200 Message-Id: <1414418485-20786-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: From: Andrei Emeltchenko --- src/shared/gatt-helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/gatt-helpers.c b/src/shared/gatt-helpers.c index d751d5a..4f53de3 100644 --- a/src/shared/gatt-helpers.c +++ b/src/shared/gatt-helpers.c @@ -1029,7 +1029,7 @@ static void discover_included_cb(uint8_t opcode, const void *pdu, data = new_read_included(cur_result); if (!data) { success = false; - goto done; + goto failed; } read_included(data); -- 1.9.1