main: When doing normal flash filter all 2nd images
This will fix infinite loop after successfull fiasco image flash
This commit is contained in:
1 parent
26b6f86f84
commit
65888448bf
1 file changed
+17
+17
@@ -758,6 +758,23 @@ int main(int argc, char **argv) {
|
||||
|
||||
}
|
||||
|
||||
/* remove 2nd image when doing normal flash */
|
||||
if ( dev_flash ) {
|
||||
image_ptr = image_first;
|
||||
while ( image_ptr ) {
|
||||
struct image_list * next = image_ptr->next;
|
||||
if ( image_ptr->image->type == IMAGE_2ND ) {
|
||||
if ( image_ptr == image_first )
|
||||
image_first = next;
|
||||
image_list_del(image_ptr);
|
||||
}
|
||||
image_ptr = next;
|
||||
}
|
||||
|
||||
/* make sure that fiasco_in has valid images */
|
||||
if ( fiasco_in )
|
||||
fiasco_in->first = image_first;
|
||||
}
|
||||
|
||||
/* identify images */
|
||||
if ( image_ident ) {
|
||||
|
||||
Reference in new issue
Block a user