mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 08:38:53 +08:00
fix flashfs: find_entry: do not go to the next sector if the CRC is invalid
This commit is contained in:
@@ -493,13 +493,14 @@ cont:
|
||||
}
|
||||
}
|
||||
|
||||
goto cont;
|
||||
} else {
|
||||
|
||||
/* invalid CRC so keep looking */
|
||||
|
||||
pmagic++;
|
||||
}
|
||||
|
||||
goto cont;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
||||
@@ -502,14 +502,14 @@ cont:
|
||||
}
|
||||
}
|
||||
|
||||
goto cont;
|
||||
|
||||
} else {
|
||||
|
||||
/* invalid CRC so keep looking */
|
||||
|
||||
pmagic++;
|
||||
}
|
||||
|
||||
goto cont;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user