Re: [PATCH][next] arm64: kexec_file: Use struct_size() in kmalloc()

From: Will Deacon
Date: Thu Jun 18 2020 - 06:40:59 EST


On Wed, 17 Jun 2020 16:34:07 -0500, Gustavo A. R. Silva wrote:
> Make use of the struct_size() helper instead of an open-coded version
> in order to avoid any potential type mistakes.
>
> This code was detected with the help of Coccinelle and, audited and
> fixed manually.

Applied to arm64 (for-next/fixes), thanks!

[1/1] arm64: kexec_file: Use struct_size() in kmalloc()
https://git.kernel.org/arm64/c/bf508ec95ca3

Cheers,
--
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev