Files
kernel_xiaomi_cepheus/include/linux/vmalloc.h
Kees Cook 673d1de917 BACKPORT: 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: Kees Cook <keescook@chromium.org>
(cherry picked from commit 3b3b1a29eb89ba93f91213cbebb332a2ac31fa8b)
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Adam W. Willis <return.of.octobot@gmail.com>
Signed-off-by: Fiqri Ardyansyah <fiqri15072019@gmail.com>
2022-10-07 11:19:35 +03:00

7.2 KiB