diff options
author | Paul Fertser <fercerpav@gmail.com> | 2015-04-05 00:16:59 +0300 |
---|---|---|
committer | Paul Fertser <fercerpav@gmail.com> | 2015-04-14 12:41:26 +0100 |
commit | eaa6d8f8392cec3fdef2fafab9af06ab627de445 (patch) | |
tree | b26e01faa1b7d91c3dd75c2ee53bba439f6e3804 /tcl/target/dsp568037.cfg | |
parent | 20a077eadbeea77ed3f4d75fbe23b6f2db891dd8 (diff) |
flash/nor/lpc2000: free allocated working area when target_write fails
In some circumstances (e.g. inappropriate jtag clock)
target_write_memory in lpc2000_iap_working_area_init might fail. The
allocated working area should be freed inside
lpc2000_iap_working_area_init in this error case.
This was leading to a weird segfault due to stack corruption later
when reset was executed.
Reported by quitte (Jonas Meyer).
Change-Id: Ia2ed42a9970a4d771727fd516a6eea88e9b859e2
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2696
Tested-by: jenkins
Diffstat (limited to 'tcl/target/dsp568037.cfg')
0 files changed, 0 insertions, 0 deletions