Fix Svace : 64214, 64219
Change-Id: I5ab4d2e84d4a510693978b6aac97ebf8c037119e
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
switch (prop & WAY_TYPE_MASK) {
case _PRIVATE_WAY_ID:
+ BUG_ON(!priv_id_cfg || priv_id_idx >= priv_id_cnt);
+
priv_id_cfg[priv_id_idx].cfg = prop & ~WAY_TYPE_MASK;
ret = of_property_read_u32_index(sysmmu->of_node,
props_name, i+1, &priv_id_cfg[priv_id_idx].id);
priv_id_idx++;
break;
case _PRIVATE_WAY_ADDR:
+ BUG_ON(!priv_addr_cfg || priv_addr_idx >= priv_addr_cnt);
+
priv_addr_cfg[priv_addr_idx].cfg = prop & ~WAY_TYPE_MASK;
priv_addr_idx++;
break;