platform: msm_shared: add secondary gpt parse check

First usable LBA will be different for primary and secondary partitions,
while parsing the secondary gpt header, should not check for first usable LBA.

Change-Id: Ifde93d014fb3af69e8a85c8b205d6889cb45c3f8
diff --git a/platform/msm_shared/partition_parser.c b/platform/msm_shared/partition_parser.c
index 387e9fc..e5eda07 100644
--- a/platform/msm_shared/partition_parser.c
+++ b/platform/msm_shared/partition_parser.c
@@ -282,7 +282,7 @@
 				"GPT: Could not read backup gpt from mmc\n");
 			goto end;
 		}
-
+		parse_secondary_gpt = 1;
 		ret = partition_parse_gpt_header(data, &first_usable_lba,
 						 &partition_entry_size,
 						 &header_size,
@@ -292,6 +292,7 @@
 				"GPT: Primary and backup signatures invalid\n");
 			goto end;
 		}
+		parse_secondary_gpt = 0;
 	}
 	partition_0 = GET_LLWORD_FROM_BYTE(&data[PARTITION_ENTRIES_OFFSET]);
 	/* Read GPT Entries */