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

Paul Moore paul at paul-moore.com
Tue Dec 14 22:47:29 UTC 2021


On Tue, Dec 14, 2021 at 6:48 AM Xiu Jianfeng <xiujianfeng at huawei.com> 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>
> ---
>  kernel/audit.c       | 2 +-
>  kernel/audit_tree.c  | 2 +-
>  kernel/auditfilter.c | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)

Merged into audit/next, thanks!

-- 
paul moore
www.paul-moore.com




More information about the Linux-audit mailing list