Skip to content
Commit 628e76e6 authored by Kathiravan Thirumoorthy's avatar Kathiravan Thirumoorthy Committed by Greg Kroah-Hartman
Browse files

firmware: qcom_scm: use 64-bit calling convention only when client is 64-bit

commit 3337a6fe upstream.

Per the "SMC calling convention specification", the 64-bit calling
convention can only be used when the client is 64-bit. Whereas the
32-bit calling convention can be used by either a 32-bit or a 64-bit
client.

Currently during SCM probe, irrespective of the client, 64-bit calling
convention is made, which is incorrect and may lead to the undefined
behaviour when the client is 32-bit. Let's fix it.

Cc: stable@vger.kernel.org
Fixes: 9a434cee

 ("firmware: qcom_scm: Dynamically support SMCCC and legacy conventions")
Reviewed-By: default avatarElliot Berman <quic_eberman@quicinc.com>
Signed-off-by: default avatarKathiravan Thirumoorthy <quic_kathirav@quicinc.com>
Link: https://lore.kernel.org/r/20230925-scm-v3-1-8790dff6a749@quicinc.com
Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6eb8c191
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment