aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/target/arm_adi_v5.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c
index f7b335d..0b11e81 100644
--- a/src/target/arm_adi_v5.c
+++ b/src/target/arm_adi_v5.c
@@ -1552,8 +1552,10 @@ static int rtp_rom_loop(const struct rtp_ops *ops,
}
if (retval == ERROR_OK)
retval = dap_run(ap->dap);
- if (retval != ERROR_OK)
+ if (retval != ERROR_OK) {
LOG_DEBUG("Failed read ROM table entry");
+ return retval;
+ }
if (width == 64) {
romentry = (((uint64_t)romentry_high) << 32) | romentry_low;