]> git.baikalelectronics.ru Git - kernel.git/commit
soc: qcom: smem: require order of host ids to match
authorAlex Elder <elder@linaro.org>
Tue, 26 Jun 2018 00:58:50 +0000 (19:58 -0500)
committerAndy Gross <andy.gross@linaro.org>
Thu, 13 Sep 2018 21:56:59 +0000 (16:56 -0500)
commitf05f7e4e1a36c92596579b41387fa921f174fd6b
tree7f07579006e017b4ddbedd016ce330cc7f5f3057
parent73b544c01ef5df5928d12dd49aaa73a61a790a70
soc: qcom: smem: require order of host ids to match

In qcom_smem_enumerate_partitions(), we find all partitions that
have a given local host id in either its host0 or its host1 field
in the partition table entry.  We then verify that the header
structure at the start of each partition also contains the same two
host ids as is found in the table of contents.

There is no requirement that the order of the two host ids be the
same in the table of contents and in the partition header.

This patch changes that, requiring host0 to in the partition table
entry to equal host0 in the partition header structure (and similar
for the host1 values).

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Andy Gross <andy.gross@linaro.org>
drivers/soc/qcom/smem.c