]> git.sur5r.net Git - openocd/commitdiff
added missing check on jtag_execute
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Wed, 26 Aug 2009 10:13:51 +0000 (10:13 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Wed, 26 Aug 2009 10:13:51 +0000 (10:13 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@2630 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/jtag/core.c

index 8cb4da558edaef6a876ae78d0a7e7351b9803a8b..3021a10306a5edb62e15061f63799db51fa93b4a 100644 (file)
@@ -1064,7 +1064,10 @@ int jtag_validate_chain(void)
 
 
        jtag_add_plain_ir_scan(1, &field, TAP_RESET);
-       jtag_execute_queue();
+       int retval;
+       retval = jtag_execute_queue();
+       if (retval != ERROR_OK)
+               return retval;
 
        tap = NULL;
        chain_pos = 0;