[ 1427597 ] Prevent segfault in "no flash" case

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@724 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Kolja Waschk 17 years ago
parent 978f105f87
commit 90136c50b9

@ -38,3 +38,109 @@ EXTRA_DIST = \
Makefile.rules
ACLOCAL_AMFLAGS = -I m4
.
./xcr3128xl-vq100
./xcr3128xl-vq100/xcr3128xl-vq100
./xcr3032xl-vq44
./xcr3032xl-vq44/xcr3032xl-vq44
./xcr3032xl-vq44/STEPPINGS
./xcr3256xl-ft256
./xcr3256xl-ft256/xcr3256xl-ft256
./xcr3256xl-ft256/STEPPINGS
./xc2c256-tq144
./xc2c256-tq144/xc2c256-tq144
./xc2c256-tq144/STEPPINGS
./xcr3128xl-cs144
./xcr3128xl-cs144/xcr3128xl-cs144
./xcr3128xl-cs144/STEPPINGS
./xc18v04pc44
./xc18v04pc44/xc18v04pc44
./xc18v04pc44/STEPPINGS
./xc2s200e-pq208
./xc2s200e-pq208/STEPPINGS
./xc2s200e-pq208/xc2s200e-pq208
./xc3s1000
./xc3s1000/xc3s1000_fg676
./xc3s1000/xc3s1000
./xc3s1000/xc3s1000_fg320
./xc3s1000/xc3s1000l_ft256
./xc3s1000/xc3s1000_ft256
./xc3s1000/xc3s1000l_fg456
./xc3s1000/STEPPINGS
./xc3s1000/xc3s1000_fg456
./xc3s1000/xc3s1000l_fg676
./xc3s1000/xc3s1000l
./xc3s1000/xc3s1000l_fg320
./xc3s100e_die
./xc3s100e_die/xc3s100e_pq208
./xc3s100e_die/xc3s100e_tq144
./xc3s100e_die/xc3s100e_die
./xc3s100e_die/STEPPINGS
./xc3s100e_die/xc3s100e_vq100
./xc3s1500
./xc3s1500/xc3s1500_fg456
./xc3s1500/xc3s1500l_fg676
./xc3s1500/xc3s1500l
./xc3s1500/xc3s1500l_fg320
./xc3s1500/xc3s1500_fg676
./xc3s1500/xc3s1500
./xc3s1500/xc3s1500_fg320
./xc3s1500/STEPPINGS
./xc3s1500/xc3s1500l_fg456
./xc3s200
./xc3s200/xc3s200_tq144
./xc3s200/xc3s200
./xc3s200/xc3s200_ft256
./xc3s200/xc3s200_vq100
./xc3s200/STEPPINGS
./xc3s200/xc3s200_pq208
./xc3s2000
./xc3s2000/xc3s2000_fg676
./xc3s2000/xc3s2000
./xc3s2000/xc3s2000l_fg900
./xc3s2000/xc3s2000_fg900
./xc3s2000/STEPPINGS
./xc3s2000/xc3s2000_fg456
./xc3s2000/xc3s2000l_fg676
./xc3s2000/xc3s2000l
./xc3s400
./xc3s400/xc3s400_fg456
./xc3s400/xc3s400_tq144
./xc3s400/xc3s400
./xc3s400/xc3s400_fg320
./xc3s400/xc3s400_ft256
./xc3s400/STEPPINGS
./xc3s400/xc3s400_pq208
./xc3s4000
./xc3s4000/xc3s4000l
./xc3s4000/xc3s4000_fg676
./xc3s4000/xc3s4000
./xc3s4000/xc3s4000l_fg900
./xc3s4000/xc3s4000_fg900
./xc3s4000/xc3s4000l_fg1156
./xc3s4000/STEPPINGS
./xc3s4000/xc3s4000_fg1156
./xc3s50
./xc3s50/xc3s50_pq208
./xc3s50/xc3s50_tq144
./xc3s50/xc3s50
./xc3s50/STEPPINGS
./xc3s50/xc3s50_vq100
./xc3s50/xc3s50_cp132
./xc3s5000
./xc3s5000/xc3s5000
./xc3s5000/xc3s5000_fg900
./xc3s5000/STEPPINGS
./xc3s5000/xc3s5000_fg1156
./xc3s500e_fg320
./xc3s500e_fg320/xc3s500e_ft256
./xc3s500e_fg320/xc3s500e_pq208
./xc3s500e_fg320/xc3s500e_fg320
./xc3s500e_fg320/STEPPINGS
./xc9572xl_vq44
./xc9572xl_vq44/xc9572xl_vq44
./xc9572xl_vq44/STEPPINGS
./xcf04s
./xcf04s/xcf04s
./xcf04s/STEPPINGS
./PARTS

@ -64,6 +64,7 @@ detectflash( bus_t *bus, uint32_t adr )
cfi_array_free( cfi_array );
cfi_array = NULL;
if (jedec_detect( bus, adr, &cfi_array ) != 0) {
cfi_array->bus_width = 1;
cfi_array_free( cfi_array );
cfi_array = NULL;
printf( _("Flash not found!\n") );

Loading…
Cancel
Save