Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
teec: do fail on MAX_SIZE allocation requests
The variable aligned_sz will be 0 when the requested sz is MAX_SIZE. Since posix_memalign can return a valid pointer for zero size allocations, share memory registration requests for MAX_SIZE might make it to the kernel. This PR stops it early - just as it was before "teec: use multiple of page size for page aligned buffers" was merged. Fixes: acb0885 ("teec: use multiple of page size for page aligned buffers") Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
- Loading branch information