[PATCH -next] audit: use struct_size() helper in kmalloc()

Kees Cook keescook at chromium.org
Tue Dec 14 17:08:39 UTC 2021


On Tue, Dec 14, 2021 at 07:48:54PM +0800, Xiu Jianfeng wrote:
> Make use of struct_size() helper instead of an open-coded calucation.
> 
> Link: https://github.com/KSPP/linux/issues/160
> Signed-off-by: Xiu Jianfeng <xiujianfeng at huawei.com>

Reviewed-by: Kees Cook <keescook at chromium.org>

-- 
Kees Cook




More information about the Linux-audit mailing list