commit | ff23e51fcc077be66eb9ce9ae63d5baee3761fa3 | [log] [tgz] |
---|---|---|
author | Arve Hjønnevåg <arve@android.com> | Fri Jun 25 14:34:02 2021 -0700 |
committer | Arve Hjønnevåg <arve@android.com> | Fri Jun 25 14:34:02 2021 -0700 |
tree | c1d105382c14301eead8a59291181597d101e966 | |
parent | 5636a4b12576efdfafea3e3dc8b1ffe75c2078a0 [diff] |
trusty: Avoid signed overflow SMC_FC_FFA_MEM_FRAG_RX returns the 16 bit sender-id in the top 16 bits of 32 bit register. Cast to uint32_t before shifting it up to avoid having the uint16_t promoted to a signed int for the shift. Currently the value we return will never have the top bit of the sender-id in this context, but this could change in the future. Bug: 185307117 Change-Id: I401e3bcf9dbe2ffa99f03e527df0f9f3f8ff0d3e