diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-08-26 10:13:51 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-08-26 10:13:51 +0000 |
commit | 0de530067f2a524bc483d958a105b1efb1ab6a86 (patch) | |
tree | 66e4f79afb83db81c85678a0c4250f304bba18bd /src | |
parent | c87357a33f554e7e7c9e8f37cd15560c7e044cf4 (diff) | |
download | riscv-openocd-0de530067f2a524bc483d958a105b1efb1ab6a86.zip riscv-openocd-0de530067f2a524bc483d958a105b1efb1ab6a86.tar.gz riscv-openocd-0de530067f2a524bc483d958a105b1efb1ab6a86.tar.bz2 |
added missing check on jtag_execute
git-svn-id: svn://svn.berlios.de/openocd/trunk@2630 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r-- | src/jtag/core.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/jtag/core.c b/src/jtag/core.c index 8cb4da5..3021a10 100644 --- a/src/jtag/core.c +++ b/src/jtag/core.c @@ -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; |