From 508bc7ca360719dd89a3fd3517732392bed8c16c Mon Sep 17 00:00:00 2001 From: Michel Jaouen Date: Tue, 20 Sep 2011 09:37:52 +0200 Subject: [PATCH] kinetis : fix deadlock on device having hasidcode false. --- src/target/arm_adi_v5.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c index 21dc54cd3..7f89f2eed 100644 --- a/src/target/arm_adi_v5.c +++ b/src/target/arm_adi_v5.c @@ -1122,9 +1122,7 @@ int dap_syssec(struct adiv5_dap *dap) while (tap != NULL) { - if (!tap->hasidcode) - continue; - if ( dap_syssec_filter_data[i].idcode == tap->idcode ) + if ( tap->hasidcode && (dap_syssec_filter_data[i].idcode == tap->idcode) ) { LOG_DEBUG("DAP: mdmap_init for idcode: %08x",tap->idcode); dap_syssec_filter_data[i].dap_init(dap); -- 2.30.2