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

Skip to content
Commit 3b3b1a29 authored by Kees Cook's avatar Kees Cook
Browse files

mm: Use overflow helpers in kvmalloc()



Instead of open-coded multiplication and bounds checking, use the new
overflow helper. Additionally prepare for vmalloc() users to add
array_size()-family helpers in the future.

Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent 49b7f898
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