Multiple persistent object manipulation
xtest 6014 is introduced. It highlights an issue when persistent
objects are manipulated in a loop.
cf. https://github.com/OP-TEE/optee_os/issues/798
Signed-off-by: Pascal Brand <pascal.brand@st.com>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
Tested-by: Joakim Bech <joakim.bech@linaro.org> (QEMU)
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
diff --git a/ta/storage/ta_entry.c b/ta/storage/ta_entry.c
index d2efd18..d3bfd0f 100644
--- a/ta/storage/ta_entry.c
+++ b/ta/storage/ta_entry.c
@@ -118,6 +118,9 @@
case TA_STORAGE_CMD_KEY_IN_PERSISTENT:
return ta_storage_cmd_key_in_persistent(nParamTypes, pParams);
+ case TA_STORAGE_CMD_LOOP:
+ return ta_storage_cmd_loop(nParamTypes, pParams);
+
default:
return TEE_ERROR_BAD_PARAMETERS;
}