Skip to content
Unverified Commit 033f09b4 authored by Caleb Connolly's avatar Caleb Connolly
Browse files

gpio: qcom_pmic: fix silent dev_read_addr downcast



priv->pid is uint32_t, but dev_read_addr() returns a uint64_t on arm64,
with the upper bits being used for error codes. Do error checking before
downcasting to u32 to prevent errors being silently ignored.

Reviewed-by: default avatarSumit Garg <sumit.garg@linaro.org>
Reviewed-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Tested-by: default avatarSumit Garg <sumit.garg@linaro.org>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Signed-off-by: default avatarCaleb Connolly <caleb.connolly@linaro.org>
parent a4ba2a66
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment