]> git.sur5r.net Git - openocd/commitdiff
kinetis : fix deadlock on device having hasidcode false.
authorMichel Jaouen <michel.jaouen@stericsson.com>
Tue, 20 Sep 2011 07:37:52 +0000 (09:37 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Fri, 23 Sep 2011 13:31:39 +0000 (15:31 +0200)
src/target/arm_adi_v5.c

index 21dc54cd3d2ccd7ddf779690ba5b2f857fb08fe6..7f89f2eed9d1ad1d947b385dbf55c62b615f0ec6 100644 (file)
@@ -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);