]> git.baikalelectronics.ru Git - kernel.git/commit
soc: qcom: mdt_loader: Fix split-firmware condition
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 15 Feb 2022 03:48:19 +0000 (19:48 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 23 Feb 2022 19:13:12 +0000 (13:13 -0600)
commite3a5d471f0f3627c7f28da747941e9230272173d
tree5ccedff596c514641ba034b96feac489f57264d1
parentc01b9e669442f1f9a62a1096e1ac1a56c4d73c97
soc: qcom: mdt_loader: Fix split-firmware condition

The updated condition checking if a segment can be found in the loaded
firmware blob, or need to be loaded from a separate file, incorrectly
classifies segments that ends at the end of the loaded blob. The result
is that the mdt loader attempts to load the segment from a separate
file.

Correct the conditional to use the loaded segment instead.

Fixes: e7e85e72692a ("soc: qcom: mdt_loader: Extend check for split firmware")
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20220215034819.1209367-1-bjorn.andersson@linaro.org
drivers/soc/qcom/mdt_loader.c