kinetis : fix deadlock on device having hasidcode false.

__archive__
Michel Jaouen 2011-09-20 09:37:52 +02:00 committed by Øyvind Harboe
parent bfe634aa91
commit 508bc7ca36
1 changed files with 1 additions and 3 deletions

View File

@ -1122,9 +1122,7 @@ int dap_syssec(struct adiv5_dap *dap)
while (tap != NULL) while (tap != NULL)
{ {
if (!tap->hasidcode) if ( tap->hasidcode && (dap_syssec_filter_data[i].idcode == tap->idcode) )
continue;
if ( dap_syssec_filter_data[i].idcode == tap->idcode )
{ {
LOG_DEBUG("DAP: mdmap_init for idcode: %08x",tap->idcode); LOG_DEBUG("DAP: mdmap_init for idcode: %08x",tap->idcode);
dap_syssec_filter_data[i].dap_init(dap); dap_syssec_filter_data[i].dap_init(dap);