riscv-openocd/src/flash/nor
Paul Fertser cf77040e1e flash/nor/lpc2000: properly free working area used in get_lpc2000_part_id()
The IAP working area needs to be freed here, just like in all the
other driver functions since an automatic local variable is used to
store a pointer to it.

This was reported by quitte (Jonas Meyer) on IRC as a strange totally
unrelated segfault after doing certain operations (leading to target
reset) from GDB. He has provided me with remote access to the specific
machine and configuration that exposed the issue, and after some
debugging it became apparent that a auto local variable (holding the
gdb connection pointer) gets overwritten somehow. Placing an
appropriate breakpoint just before the event and using a watchpoint
made the cause apparent: reset lead to freeing of all working areas,
and there was one holding a pointer to a variable that was auto local
in get_lpc2000_part_id().

Change-Id: I7e634d890135ca0f3b4b311e09e8385a03982bd6
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2695
Tested-by: jenkins
2015-04-14 12:36:57 +01:00
..
Makefile.am sim3x: new flash driver for Silabs SiM3 microcontroller family 2015-02-11 22:05:22 +00:00
aduc702x.c flash: Constify write buffer 2014-03-17 12:47:18 +00:00
at91sam3.c flash/nor/at91sam3: remove sam3_page_write_opcodes 2014-04-08 11:34:53 +00:00
at91sam4.c Added Atmel SAM4SA16C chip (chip ID 0x28a70ce0). 2015-04-14 11:53:12 +01:00
at91sam4l.c Fix some C99 format specifiers 2014-05-05 20:18:38 +00:00
at91sam7.c flash: Constify write buffer 2014-03-17 12:47:18 +00:00
at91samd.c flash/nor/at91samd: add small delay before checking nvm status 2015-02-11 23:22:40 +00:00
avrf.c atmega: add support for the at90usb128 flash 2015-03-09 06:25:52 +00:00
cfi.c flash: Constify write buffer 2014-03-17 12:47:18 +00:00
cfi.h Support for SST 39VF3201C NOR flash 2013-07-01 08:39:36 +00:00
core.c fix flash bank auto_probe() fail with multiple targets 2013-12-17 23:04:01 +00:00
core.h flash: add padded_value cmd 2013-10-07 19:28:19 +00:00
driver.h flash: Constify write buffer 2014-03-17 12:47:18 +00:00
drivers.c sim3x: new flash driver for Silabs SiM3 microcontroller family 2015-02-11 22:05:22 +00:00
dsp5680xx_flash.c flash: Constify write buffer 2014-03-17 12:47:18 +00:00
efm32.c efm32 : Added ZeroGecko family support. 2014-06-22 08:29:27 +00:00
em357.c flash: Constify write buffer 2014-03-17 12:47:18 +00:00
faux.c flash: Constify write buffer 2014-03-17 12:47:18 +00:00
fm3.c flash: constify driver data structures 2014-10-06 11:57:32 +00:00
imp.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
kinetis.c flash/nor/kinetis: do not attempt mass-erase in place of a bank erase 2015-03-25 20:47:46 +00:00
lpc288x.c flash: Constify write buffer 2014-03-17 12:47:18 +00:00
lpc2000.c flash/nor/lpc2000: properly free working area used in get_lpc2000_part_id() 2015-04-14 12:36:57 +01:00
lpc2900.c flash: Constify write buffer 2014-03-17 12:47:18 +00:00
lpcspifi.c flash/nor/lpcspifi.c: fix bug that prevented clean reset after flash write 2014-11-24 22:14:38 +00:00
mdr.c flash: Constify write buffer 2014-03-17 12:47:18 +00:00
mini51.c mini51: support for Nuvoton NuMicro M051 series flash memory 2015-02-11 15:23:09 +00:00
mrvlqspi.c flash/nor: mrvlqspi: fix printf formatting issues 2015-03-25 21:39:48 +00:00
non_cfi.c flash: constify driver data structures 2014-10-06 11:57:32 +00:00
non_cfi.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
nrf51.c nrf51: Update known devices table. 2015-02-24 15:23:17 +00:00
nuc1x.c nuc1x: fix typos 2014-10-06 11:57:26 +00:00
ocl.c flash: Constify write buffer 2014-03-17 12:47:18 +00:00
ocl.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
pic32mx.c flash: Constify write buffer 2014-03-17 12:47:18 +00:00
psoc4.c psoc4 flash driver: cleaned printf PRI... formats 2015-02-28 05:47:57 +00:00
sim3x.c flash/nor/sim3x: remove dead assignment 2015-03-09 06:33:43 +00:00
spi.c flash/nor/spi: add GigaDevice SPI flash 2015-02-24 14:48:37 +00:00
spi.h flash: declare fixed arrays const 2014-02-06 22:17:51 +00:00
stellaris.c flash/nor/stellaris: allow to recover a locked device that can't be examined 2015-03-09 08:58:16 +00:00
stm32f1x.c Add more STM32F3 IDs in target/stm32f3.cfg. 2015-02-02 10:29:01 +00:00
stm32f2x.c flash/nor/stm32f2x: add new revisions of STM32F4x parts 2015-02-04 21:56:23 +00:00
stm32lx.c flash/nor/stm32lx: add all the IDs and revisions from current RM 2015-02-12 12:56:46 +00:00
stmsmi.c flash: Constify write buffer 2014-03-17 12:47:18 +00:00
str7x.c flash: Constify write buffer 2014-03-17 12:47:18 +00:00
str9x.c flash: Constify write buffer 2014-03-17 12:47:18 +00:00
str9xpec.c flash: Constify write buffer 2014-03-17 12:47:18 +00:00
tcl.c flash/nor/tcl.c: Do not double probe banks 2014-09-22 19:38:37 +00:00
tms470.c flash: Constify write buffer 2014-03-17 12:47:18 +00:00
virtual.c flash: Constify write buffer 2014-03-17 12:47:18 +00:00