]> git.sur5r.net Git - openocd/commit
NOR/SPEARSMI: fix segfault
authorAntonio Borneo <borneo.antonio@gmail.com>
Thu, 18 Nov 2010 07:01:03 +0000 (15:01 +0800)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 23 Nov 2010 07:37:28 +0000 (08:37 +0100)
commite6fc371e2e86a00c7e84004b94c4b8374634953d
tree757cfadc0fe1508669c63a04edbc2ce1e89f2588
parent06b4903e3e932a5d21d20adba551c36c296496ce
NOR/SPEARSMI: fix segfault

If flash chip is not listed in the table, or if no flash is
connected, pointer must be properly initialized.

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
src/flash/nor/spearsmi.c