benchmark: remove TEE_DATA_FLAG_OVERWRITE in call to TEE_OpenPersistentObject

During Storage benchmark testing.
When we try to Open persistent object with following flags:

TEE_DATA_FLAG_ACCESS_READ | TEE_DATA_FLAG_ACCESS_WRITE |
TEE_DATA_FLAG_ACCESS_WRITE_META | TEE_DATA_FLAG_OVERWRITE

which lands into syscall_storage_obj_open(), where it checks the flags
which were passed during opening the object and valid flags

TEE_DATA_FLAG_ACCESS_READ | TEE_DATA_FLAG_ACCESS_WRITE |
TEE_DATA_FLAG_ACCESS_WRITE_META | TEE_DATA_FLAG_SHARE_READ |
TEE_DATA_FLAG_SHARE_WRITE

TEE_DATA_FLAG_OVERWRITE flag is not a valid flag in
TEE_OpenPersistentObject(), thats why this call will always
fail.

Removing TEE_DATA_FLAG_OVERWRITE in call to TEE_OpenPersistentObject

Signed-off-by: Sahil Malhotra <sahil.malhotra@nxp.com>
Acked-by: Jerome Forissier <jerome@forissier.org>
Fixes: https://github.com/OP-TEE/optee_os/issues/4659
1 file changed
tree: c3c8ab9270f61ce8c3455d2ea72080d1e03becc8
  1. .github/
  2. cert/
  3. host/
  4. scripts/
  5. ta/
  6. .gitignore
  7. Android.mk
  8. CMakeLists.txt
  9. CMakeToolchain.txt
  10. LICENSE.md
  11. Makefile
  12. README.md
  13. typedefs.checkpatch
README.md

OP-TEE sanity testsuite

This git contains source code for the test suite (xtest) used to test the OP-TEE project.

All official OP-TEE documentation has moved to http://optee.readthedocs.io. The information that used to be here in this git can be found under optee_test.

// OP-TEE core maintainers