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: acb0885c ("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
Please register or sign in to comment