Files
sw_openocd/src/flash/nor
Aurelien Jacobs 67c3ad8c40 at91sam7: ensure probed flash bank has a name (fix a segfault)
Before this commit, openocd used to segfault when probing flash
of an at91sam7x512 (which contains 2 banks of flash). This was due
to the way it systematically insert a new flash bank without setting
its name.
Then, when get_flash_bank_by_name_noprobe() is called, it is doing
a strcmp() on the non-initialized bank->name.

This commit prevents allocation of second probed bank if it is already
allocated (for example, if it is set in a target config file). If a
new bank really needs to be allocated, it ensures that a default name
is set.

Change-Id: I38d15bef1fda2ec746efad37171975136cf7b371
Signed-off-by: Aurelien Jacobs <aurel@gnuage.org>
Reviewed-on: http://openocd.zylin.com/171
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2011-11-15 09:27:50 +00:00
..
2011-01-09 21:35:23 +01:00
2010-11-17 17:01:59 +01:00
2011-11-04 22:53:31 +00:00
2011-08-18 09:55:44 +01:00
2011-10-23 14:37:48 +00:00
2010-12-29 22:07:39 +01:00
2010-12-29 22:07:39 +01:00
2011-01-05 21:46:12 +01:00
2011-10-14 14:18:56 +02:00
2010-12-29 22:16:28 +01:00
2011-08-24 11:12:53 +02:00
2009-12-04 16:56:24 -08:00
2010-09-21 22:17:38 +02:00
2009-12-02 23:27:09 -08:00
2011-10-28 15:24:50 +00:00
2011-07-28 11:42:27 +01:00
2011-11-07 20:32:06 +00:00
2011-08-09 20:55:26 +02:00
2010-06-21 22:14:19 +08:00