Merge "soc: qcom: smem: Fix possible use of uninitialized variable"
This commit is contained in:
commit
9c52d1de73
1 changed files with 12 additions and 6 deletions
|
@ -1222,12 +1222,18 @@ static void smem_init_security_partition(struct smem_toc_entry *entry,
|
|||
LOG_ERR("Smem partition %d cached heap exceeds size\n", num);
|
||||
BUG();
|
||||
}
|
||||
if (hdr->host0 == SMEM_COMM_HOST && hdr->host1 == SMEM_COMM_HOST) {
|
||||
comm_partition.partition_num = num;
|
||||
comm_partition.offset = entry->offset;
|
||||
comm_partition.size_cacheline = entry->size_cacheline;
|
||||
SMEM_INFO("Common Partition %d offset:%x\n", num,
|
||||
entry->offset);
|
||||
if (is_comm_partition) {
|
||||
if (hdr->host0 == SMEM_COMM_HOST
|
||||
&& hdr->host1 == SMEM_COMM_HOST) {
|
||||
comm_partition.partition_num = num;
|
||||
comm_partition.offset = entry->offset;
|
||||
comm_partition.size_cacheline = entry->size_cacheline;
|
||||
SMEM_INFO("Common Partition %d offset:%x\n", num,
|
||||
entry->offset);
|
||||
} else {
|
||||
LOG_ERR("Smem Comm partition hosts don't match TOC\n");
|
||||
WARN_ON(1);
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (hdr->host0 != SMEM_APPS && hdr->host1 != SMEM_APPS) {
|
||||
|
|
Loading…
Add table
Reference in a new issue