From: Michel Jaouen Date: Tue, 20 Sep 2011 07:37:52 +0000 (+0200) Subject: kinetis : fix deadlock on device having hasidcode false. X-Git-Url: https://git.gag.com/?a=commitdiff_plain;ds=sidebyside;h=508bc7ca360719dd89a3fd3517732392bed8c16c;p=fw%2Fopenocd 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 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);