aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorKevin Peng <kevin.peng@arm.com>2021-01-27 10:01:31 +0800
committerKevin Peng <kevin.peng@arm.com>2021-02-22 08:55:29 +0000
commit5ec7965124f4b6d0c1b1653d67da2171175c26da (patch)
tree9fa4874dd5f4ca7ba26a9a33908ddb2e308cb85b /tools
parentbbb7fdf52225cc0fdf6fe8adedd46c91623bf4cc (diff)
downloadtrusted-firmware-m-5ec7965124f4b6d0c1b1653d67da2171175c26da.tar.gz
Interface: Ensure veneer function result return in dispatch
The tfm_ns_interface_dispatch() function returns TFM_ERROR_GENERIC when mutex operations fails. However, this error code could be interrepted by the caller as another status code or even valid return. For example the psa_connect() of NS interface, it treats the value of TFM_ERROR_GENERIC a valid handle. And the psa_call() could treat TFM_ERROR_GENERIC as another status code of the RoT service. In both cases, the TFM_ERROR_GENERIC is translated incorrectly. The tfm_ns_interface_dispatch() should only return status code from the veneer function being called. Other unrecoverable errors should be considered as fatal error and should not return. Change-Id: Id4082a46cd866acaba85aa63d10cfe46d09b3044 Signed-off-by: Kevin Peng <kevin.peng@arm.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions