commit | cc0caaaf03d804137effcc649a2860ada0fe13fe | [log] [tgz] |
---|---|---|
author | Caleb Connolly <caleb.connolly@linaro.org> | Thu Aug 10 19:21:51 2023 +0100 |
committer | Caleb Connolly <caleb.connolly@linaro.org> | Tue Dec 05 13:35:23 2023 +0000 |
tree | faab1603f6ec6258a699173e037a35d0063a4bcb | |
parent | afd9dcf23cb232dd5f352336c6b389691682be47 [diff] |
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: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>