fix flashfs: find_entry: do not go to the next sector if the CRC is invalid

This commit is contained in:
Beat Küng
2022-08-31 09:42:59 +02:00
parent 4f52cda504
commit d681782c7f
2 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -493,13 +493,14 @@ cont:
}
}
goto cont;
} else {
/* invalid CRC so keep looking */
pmagic++;
}
goto cont;
}
return NULL;
+2 -2
View File
@@ -502,14 +502,14 @@ cont:
}
}
goto cont;
} else {
/* invalid CRC so keep looking */
pmagic++;
}
goto cont;
}
return NULL;