Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: fix OOM handling in tee_svc_storage_read_head() #2316

Merged
merged 1 commit into from
May 14, 2018

Commits on May 14, 2018

  1. core: fix OOM handling in tee_svc_storage_read_head()

    Fixes out of memory handling error in tee_svc_storage_read_head(). Prior
    to this all errors from fops->read() was reported as
    TEE_ERROR_CORRUPT_OBJECT leading to removal of the object even when the
    real problem was temporary memory shortage. This patch reports
    TEE_ERROR_OUT_OF_MEMORY from fops->read() correctly while translating
    all other errors to TEE_ERROR_CORRUPT_OBJECT.
    
    Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
    Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
    jenswi-linaro committed May 14, 2018
    Configuration menu
    Copy the full SHA
    d45029a View commit details
    Browse the repository at this point in the history