From f6d05294af614637932c37af6cb56d19023ce06f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Rymanowski?= Date: Wed, 2 Oct 2019 10:15:19 +0200 Subject: [PATCH] nimble/l2cap: Fix extracting proc from the list When we were creating more than one channel at the time (we are doing it in the auto pts test enviroment), we will end up with removing from the list not that proc which we want as prev is always set to NULL wich means, we always remove HEAD of the list --- nimble/host/src/ble_l2cap_sig.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nimble/host/src/ble_l2cap_sig.c b/nimble/host/src/ble_l2cap_sig.c index 07a338ae6..de19e55a5 100644 --- a/nimble/host/src/ble_l2cap_sig.c +++ b/nimble/host/src/ble_l2cap_sig.c @@ -286,6 +286,7 @@ ble_l2cap_sig_proc_extract(uint16_t conn_handle, uint8_t op, } break; } + prev = proc; } ble_hs_unlock();