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

From: xiujianfeng
Date: Tue Dec 14 2021 - 21:56:37 EST



在 2021/12/15 6:47, Paul Moore 写道:
On Tue, Dec 14, 2021 at 6:48 AM Xiu Jianfeng <xiujianfeng@xxxxxxxxxx> 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@xxxxxxxxxx>
---
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!
thank you, but I missed two places, do you mind if I send a v2 patch?