Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b7fe1b21 authored by Mitchel Humpherys's avatar Mitchel Humpherys
Browse files

ion: cma_secure_heap: validate buffer length



The secure CMA heap only supports buffers lengths that are multiples of
1MB. Currently, we simply crash if a bad length is requested. Rather
than crashing, log an error and return a failure.

Change-Id: I0387ee9f2900e44c817d3a7497e9b0528dd8c33b
Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent 7c7e3ec1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment