Files
kernel_xiaomi_cepheus/include/linux/device.h
Kees Cook d0526a6dcc UPSTREAM: device: Use overflow helpers for devm_kmalloc()
Use the overflow helpers both in existing multiplication-using inlines as
well as the addition-overflow case in the core allocation routine.

Signed-off-by: Kees Cook <keescook@chromium.org>
(cherry picked from commit 2509b561f7c6599907c08cb364c86b8c45466e4f)
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

53 KiB