Return-Path: From: Andrei Emeltchenko To: linux-bluetooth@vger.kernel.org Subject: [PATCH] android/gatt: Fix wrong check Date: Thu, 12 Jun 2014 12:58:05 +0300 Message-Id: <1402567085-26830-1-git-send-email-Andrei.Emeltchenko.news@gmail.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: From: Andrei Emeltchenko --- android/gatt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/gatt.c b/android/gatt.c index cc3746c..08da856 100644 --- a/android/gatt.c +++ b/android/gatt.c @@ -4133,7 +4133,7 @@ static void fill_gatt_response_by_handle(uint16_t handle, uint16_t offset, entry = queue_find(dev->pending_requests, match_dev_request_by_handle, UINT_TO_PTR(handle)); - if (entry) { + if (!entry) { DBG("No pending response found! Bogus android response?"); return; } -- 1.8.3.2