Commit 0fc79cbc authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Kees Cook
Browse files

params: Use size_add() for kmalloc()



Prevent allocations from integer overflow by using size_add().

Reviewed-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20231120151419.1661807-4-andriy.shevchenko@linux.intel.com


Signed-off-by: default avatarKees Cook <keescook@chromium.org>
parent fd0cd057
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment