smem.h : Change array size to avoid buffer overflow

Change size of array to SMEM_MAX_SIZE to allow access to index
SMEM_BOOT_INFO_FOR_APPS in function get_boot_info_apps

Change-Id: I305a99cb2312104a2553e218c2cd793496595bd6
diff --git a/platform/msm_shared/smem.h b/platform/msm_shared/smem.h
index 8e58653..269ae9f 100644
--- a/platform/msm_shared/smem.h
+++ b/platform/msm_shared/smem.h
@@ -226,6 +226,8 @@
 
 	SMEM_FIRST_VALID_TYPE = SMEM_SPINLOCK_ARRAY,
 	SMEM_LAST_VALID_TYPE = SMEM_BOOT_INFO_FOR_APPS,
+
+	SMEM_MAX_SIZE = SMEM_BOOT_INFO_FOR_APPS + 1,
 } smem_mem_type_t;
 
 /* Note: buf MUST be 4byte aligned, and max_len MUST be a multiple of 4. */
@@ -272,7 +274,7 @@
 	struct smem_proc_comm proc_comm[4];
 	unsigned version_info[32];
 	struct smem_heap_info heap_info;
-	struct smem_alloc_info alloc_info[SMEM_LAST_VALID_TYPE];
+	struct smem_alloc_info alloc_info[SMEM_MAX_SIZE];
 };
 
 struct smem_ram_ptn {