mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 02:05:01 +00:00
Successful partitions are never marked bad by cgptlib.
Change-Id: I70e54f59b540e9115bb6bd77ae51f49a1f4ab671 BUG=chromeos-partner:1029 TEST=make && make runtests Review URL: http://codereview.chromium.org/3315014
This commit is contained in:
@@ -129,10 +129,12 @@ int GptUpdateKernelEntry(GptData* gpt, uint32_t update_type) {
|
||||
}
|
||||
case GPT_UPDATE_ENTRY_BAD: {
|
||||
/* Giving up on this partition entirely. */
|
||||
e->attrs.fields.gpt_att = previous_attr & ~(
|
||||
CGPT_ATTRIBUTE_SUCCESSFUL_MASK |
|
||||
CGPT_ATTRIBUTE_TRIES_MASK |
|
||||
CGPT_ATTRIBUTE_PRIORITY_MASK);
|
||||
if (!GetEntrySuccessful(e)) {
|
||||
/* Only clear tries and priority if the successful bit is not set. */
|
||||
e->attrs.fields.gpt_att = previous_attr & ~(
|
||||
CGPT_ATTRIBUTE_TRIES_MASK |
|
||||
CGPT_ATTRIBUTE_PRIORITY_MASK);
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user