| commit | df537dd7b9147bd5aaba620f76cbf9dd7a07f0a3 | [log] [tgz] |
|---|---|---|
| author | Jens Wiklander <jens.wiklander@linaro.org> | Wed Dec 01 08:37:33 2021 +0100 |
| committer | Jérôme Forissier <jerome@forissier.org> | Wed Dec 01 13:25:35 2021 +0100 |
| tree | 7455ea81f4c7e53b3191bec500f3b759db625028 | |
| parent | 6d54f84d1e9aa58265afc7a5541bd7eeac4cc929 [diff] |
tee-supplicant: read_with_timeout(): fix non-blocking peeking In case read_with_timeout() is called with *blen == 0 it indicates that read_with_timeout() should just check how much data is available, and set how much in *blen and return success. If there is none available it just also returns success. Prior to this patch read_with_timeout() was instead returning an error in case no data was available, this is not expected by the caller so fix this by returning success in that case instead. Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
This git contains source code for the non-secure side implementation of the OP-TEE project making up the client library and tee-supplicant.
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_client.
// OP-TEE core maintainers