Searched hist:"8 fa1a21409da6abfe890f66532f9fcd8d2c25a3d" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/soc/qcom/ |
H A D | smem.c | diff 8fa1a21409da6abfe890f66532f9fcd8d2c25a3d Tue Apr 10 17:25:41 CDT 2018 Alex Elder <elder@linaro.org> soc: qcom: smem: fix qcom_smem_set_global_partition()
If there is at least one entry in the partition table, but no global entry, the qcom_smem_set_global_partition() should return an error just like it does if there are no partition table entries.
It turns out the function still returns an error in this case, but it waits to do so until it has mistakenly treated the last entry in the table as if it were the global entry found.
Fix the function to return immediately if no global entry is found in the table.
Signed-off-by: Alex Elder <elder@linaro.org> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Andy Gross <andy.gross@linaro.org>
|