Merge "target: msm8953: update panel's porch value for increase DSI clock"
diff --git a/platform/msm_shared/partition_parser.c b/platform/msm_shared/partition_parser.c
old mode 100644
new mode 100755
index 3752ba8..33fa458
--- a/platform/msm_shared/partition_parser.c
+++ b/platform/msm_shared/partition_parser.c
@@ -589,6 +589,8 @@
unsigned int partition_entry_array_start;
unsigned char *primary_gpt_header;
unsigned char *secondary_gpt_header;
+ //define as 64 bit unsigned int
+ unsigned long long *last_partition_entry;
unsigned int offset;
unsigned long long card_size_sec;
int total_part = 0;
@@ -624,9 +626,14 @@
(ptn_entries_blocks + GPT_HEADER_BLOCKS))));
/* Find last partition */
- while (*(primary_gpt_header + block_size + total_part * ENTRY_SIZE) !=
- 0) {
+ last_partition_entry = (unsigned long long *)
+ (primary_gpt_header + block_size + total_part * ENTRY_SIZE);
+ //need check 128 bit for GUID
+ while (*last_partition_entry != 0 ||
+ *(last_partition_entry + 1) != 0 ) {
total_part++;
+ last_partition_entry = (unsigned long long *)
+ (primary_gpt_header + block_size + total_part * ENTRY_SIZE);
}
/* Patching last partition */