commit | bb4a42a4184b96371fd83708e07f27504767fa38 | [log] [tgz] |
---|---|---|
author | Mingyang Sun <mingyang.sun@arm.com> | Tue Dec 14 15:18:52 2021 +0800 |
committer | Ken Liu <ken.liu@arm.com> | Tue Jan 18 04:55:37 2022 +0100 |
tree | 3de4b667e4306ec67af101a59ea17cc071235d22 | |
parent | 90f08dc62464063bfe707ba2b922434e6fa37fcf [diff] |
SPM: Optimize the PSA API error handling process In SPM implementation, message is a struct inside connection handle struct and therefore it is unnecessary to check whether the message pointer is NULL. This patch: - Skips checking message pointer after getting it from the connection handle. - Returns an error code instead of calling tfm_core_panic() in some error processing. Change-Id: Id45e63f8bbdd3d21db3ee32b43f4553ab7520a8f Signed-off-by: Mingyang Sun <mingyang.sun@arm.com>