From: Michel Jaouen Date: Tue, 20 Sep 2011 07:37:52 +0000 (+0200) Subject: kinetis : fix deadlock on device having hasidcode false. X-Git-Tag: v0.6.0-rc1~571 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=508bc7ca360719dd89a3fd3517732392bed8c16c;p=openocd kinetis : fix deadlock on device having hasidcode false. --- diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c index 21dc54cd..7f89f2ee 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);