Searched hist:"04 a512fea333369cc0b550f3b90df0d638e34d00" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/soc/qcom/ |
H A D | smem.c | diff 04a512fea333369cc0b550f3b90df0d638e34d00 Tue Apr 10 17:25:39 CDT 2018 Alex Elder <elder@linaro.org> soc: qcom: smem: byte swap values properly
Two places report an error when a partition header is found to not contain the right canary value. The error messages do not properly byte swap the host ids. Fix this, and adjust the format specificier to match the 16-bit unsigned data type.
Move the error handling for a bad canary value to the end of qcom_smem_alloc_private(). This avoids some long lines, and reduces the distraction of handling this unexpected problem.
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>
|